Gonna start unit testing to resolve issues

This commit is contained in:
2022-08-28 07:03:12 +01:00
parent 9c766ec61e
commit 5300e2ceec
13 changed files with 0 additions and 2 deletions

View File

@@ -0,0 +1,27 @@
//test numbers
assert 1 < 2, "1 < 2";
assert 1 == 1, "1 == 1";
assert 2 > 1, "2 > 1";
assert 1 <= 2, "1 <= 2";
assert 2 >= 1, "2 >= 1";
//test variables
var a = 1;
var b = 2;
assert a < b, "a < b";
assert a == a, "a == a";
assert b > a, "b > a";
assert a <= b, "a <= b";
assert b >= a, "b >= a";
//test negation
assert !false, "!false";
var c = false;
assert !c, "!c";
print "All good";