Testing framework: allow comparing subtrees starting at a given line with expected dump text.

This commit is contained in:
Dmitry Petrov
2016-08-11 11:40:07 +03:00
committed by Dmitry Petrov
parent c93666f6f1
commit b80782c295
6 changed files with 72 additions and 24 deletions
+2 -2
View File
@@ -20,10 +20,10 @@ IrFile /calls.kt
IrFunction public fun kotlin.Int.ext1(): kotlin.Int
IrExpressionBody
RETURN type=kotlin.Int
DUMMY KtThisExpression
$RECEIVER of: <root>
IrFunction public fun kotlin.Int.ext2(/*0*/ x: kotlin.Int): kotlin.Int
IrExpressionBody
RETURN type=kotlin.Int
CALL foo
x: DUMMY KtThisExpression
x: $RECEIVER of: <root>
y: VAR x
+1 -1
View File
@@ -1,5 +1,5 @@
fun testFun(): String { return "OK" }
val testSimpleVal = 1
val testSimpleVal = 1 // <<< smoke.testSimpleVal.txt
val testValWithGetter: Int get() = 42
var testSimpleVar = 2
var testVarWithAccessors: Int
+4
View File
@@ -0,0 +1,4 @@
IrProperty public val testSimpleVal: kotlin.Int = 1 getter=null setter=null
IrExpressionBody
RETURN type=kotlin.Int
LITERAL Int type=kotlin.Int value='1'