Add tests in the language
This commit is contained in:
parent
74bd9c9582
commit
e8d8731922
6 changed files with 102 additions and 0 deletions
11
tests/conditions.ang
Normal file
11
tests/conditions.ang
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# Basic equality
|
||||
assert(1 == 1)
|
||||
assert(0 == 0)
|
||||
assert("" == "")
|
||||
|
||||
assert([] == [])
|
||||
assert([3, 1, 4, 1] == [3, 1, 4, 1])
|
||||
assert([true, 1024, nil, "Hello world!"] == [true, 1024, nil, "Hello world!"])
|
||||
|
||||
# Inequality
|
||||
assert(2 != 3)
|
||||
Loading…
Add table
Add a link
Reference in a new issue