Add function/caching test

This commit is contained in:
Bruce Hill 2024-03-09 16:46:25 -05:00
parent 69162964e0
commit 5cfc01ac09

14
test/functions.tm Normal file
View 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