WOW. NodeTree deletes duplicate nodes. So x+x didn't work....

This commit is contained in:
Nathan Braswell
2015-03-14 16:53:00 -04:00
parent e04cf03858
commit f1b0d46ca0
4 changed files with 35 additions and 3 deletions

View File

@@ -0,0 +1,6 @@
Spam
12
14
28
We'll find out.
34

18
tests/test_badMath.krak Normal file
View File

@@ -0,0 +1,18 @@
import io;
|int| main() {
io::println("Spam");
|int| x = 4;
x += 3;
x++;
|int| y = 6;
|int| z = x + y;
|int| q = z+z;
|int| q2 = z*3;
|int| q3 = y + y;
io::println(q3);
io::println(z);
io::println(q);
for (|int| i = 0; i < 20; i++;) z++;
if (z > 20) io::println("We'll find out.");
io::println(z);
}