Improve test data format for SMAP codegen tests
Instead of comments in a Kotlin source file, add a .smap with the contents of the source mapping data (and possible comments)
This commit is contained in:
committed by
Alexander Udalov
parent
cc84aabdcf
commit
f7958edf21
+15
-12
@@ -4,8 +4,6 @@ package zzz
|
||||
|
||||
inline fun nothing() {}
|
||||
|
||||
//SMAP ABSENT
|
||||
|
||||
// FILE: 2.kt
|
||||
|
||||
fun box(): String {
|
||||
@@ -19,14 +17,19 @@ inline fun test(p: () -> String): String {
|
||||
pd = "O"
|
||||
return pd + p()
|
||||
}
|
||||
|
||||
// FILE: 1.smap
|
||||
|
||||
// FILE: 2.smap
|
||||
|
||||
//TODO should be empty
|
||||
//SMAP
|
||||
//oneFile.1.kt
|
||||
//Kotlin
|
||||
//*S Kotlin
|
||||
//*F
|
||||
//+ 1 oneFile.1.kt
|
||||
//OneFile_1Kt
|
||||
//*L
|
||||
//1#1,22:1
|
||||
//*E
|
||||
SMAP
|
||||
2.kt
|
||||
Kotlin
|
||||
*S Kotlin
|
||||
*F
|
||||
+ 1 2.kt
|
||||
_2Kt
|
||||
*L
|
||||
1#1,15:1
|
||||
*E
|
||||
|
||||
Reference in New Issue
Block a user