Add tests in the language
This commit is contained in:
parent
74bd9c9582
commit
e8d8731922
6 changed files with 102 additions and 0 deletions
12
tests/simple_func.ang
Normal file
12
tests/simple_func.ang
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
func sum(a, b) {
|
||||
return a + b
|
||||
}
|
||||
|
||||
breakpoint
|
||||
|
||||
assert(sum(1, 2) == 3)
|
||||
breakpoint
|
||||
|
||||
assert(sum(3, 3) == 6)
|
||||
breakpoint
|
||||
Loading…
Add table
Add a link
Reference in a new issue