Added/updated tests for LexicalScope.

This commit is contained in:
Svetlana Isakova
2014-03-05 19:32:10 +04:00
parent 2cfcd1783b
commit 006f3ccbe9
81 changed files with 1404 additions and 604 deletions
@@ -5,8 +5,8 @@ fun test() {
}
---------------------
L0:
<START>
mark({ throw Exception() test() })
1 <START>
2 mark({ throw Exception() test() })
mark(throw Exception())
mark(Exception())
call(Exception, <init>)
@@ -14,7 +14,7 @@ L0:
- mark(test()) PREV:[]
- call(test, test) PREV:[]
L1:
<END> NEXT:[<SINK>] PREV:[]
1 <END> NEXT:[<SINK>] PREV:[]
error:
<ERROR> PREV:[throw (throw Exception())]
sink:
@@ -4,14 +4,14 @@ fun foo() {
}
---------------------
L0:
<START>
mark({ return ?: null })
1 <START>
2 mark({ return ?: null })
ret L1 NEXT:[<END>]
- jt(L2) NEXT:[r(null), <END>] PREV:[]
- r(null) PREV:[]
L1:
L2:
<END> NEXT:[<SINK>] PREV:[ret L1]
1 <END> NEXT:[<SINK>] PREV:[ret L1]
error:
<ERROR> PREV:[]
sink:
@@ -4,8 +4,8 @@ fun test() {
}
---------------------
L0:
<START>
mark({ "${throw Exception()} ${1}" })
1 <START>
2 mark({ "${throw Exception()} ${1}" })
mark("${throw Exception()} ${1}")
mark(throw Exception())
mark(Exception())
@@ -14,7 +14,7 @@ L0:
- r(1) PREV:[]
- r("${throw Exception()} ${1}") PREV:[]
L1:
<END> NEXT:[<SINK>] PREV:[]
1 <END> NEXT:[<SINK>] PREV:[]
error:
<ERROR> PREV:[throw (throw Exception())]
sink: