diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-03-09 16:46:25 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-03-09 16:46:25 -0500 |
| commit | 5cfc01ac09ae3b2d53be8afe72f8fd60c9926179 (patch) | |
| tree | 7f89e331227edd6f9415f8004647dc62f1ad7747 /test/functions.tm | |
| parent | 69162964e062d1d5315ad6cd53a8771f999006f9 (diff) | |
Add function/caching test
Diffstat (limited to 'test/functions.tm')
| -rw-r--r-- | test/functions.tm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/functions.tm b/test/functions.tm new file mode 100644 index 00000000..487e9467 --- /dev/null +++ b/test/functions.tm @@ -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 + |
