Add tests for element -> pseudo-value mapping

This commit is contained in:
Alexey Sedunov
2014-05-19 18:32:03 +04:00
parent d2c055e9da
commit 4a5d2e6728
78 changed files with 3105 additions and 1 deletions
@@ -0,0 +1,11 @@
== foo ==
fun foo(a: Int, b: Int) {
if (a == b) {
}
}
---------------------
a <v2> NEW()
== <v4> NEW(<v2>, <v3>)
b <v3> NEW()
a == b <v4> COPY
=====================
@@ -0,0 +1,10 @@
== foo ==
fun foo() {
var i = 1
i++
}
---------------------
1 <v0> NEW()
i <v1> NEW()
++ <v2> NEW(<v1>)
=====================
@@ -0,0 +1,9 @@
== foo ==
fun foo(f: () -> Unit) {
f()
}
---------------------
f <v2> NEW(<v1>)
f() <v2> COPY
{ f() } <v2> COPY
=====================
@@ -0,0 +1,10 @@
== neq ==
fun neq(a: Int, b: Int) {
if (a != b) {}
}
---------------------
a <v2> NEW()
!= <v4> NEW(<v2>, <v3>)
b <v3> NEW()
a != b <v4> COPY
=====================