Add function/caching test
This commit is contained in:
parent
69162964e0
commit
5cfc01ac09
14
test/functions.tm
Normal file
14
test/functions.tm
Normal file
@ -0,0 +1,14 @@
|
||||
func add(x:Int, y:Int)->Int
|
||||
return x + y
|
||||
|
||||
>> add(3, 5)
|
||||
= 8
|
||||
|
||||
func cached_heap(x:Int; cached)->@Int
|
||||
return @x
|
||||
|
||||
>> cached_heap(1) == cached_heap(1)
|
||||
= yes
|
||||
>> cached_heap(1) == cached_heap(2)
|
||||
= no
|
||||
|
Loading…
Reference in New Issue
Block a user