aboutsummaryrefslogtreecommitdiff
path: root/test/functions.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-04-12 13:09:31 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-04-12 13:09:31 -0400
commit6c01eef851439549018267fdc439e4884af0c624 (patch)
tree0599dd071b8a5effb67e6a87ed1c34777eb8d8c7 /test/functions.tm
parent17cb6ffd88c4464c513b045f4b06c4e6e46e8f22 (diff)
Introducing the main() function
Diffstat (limited to 'test/functions.tm')
-rw-r--r--test/functions.tm15
1 files changed, 8 insertions, 7 deletions
diff --git a/test/functions.tm b/test/functions.tm
index 487e9467..13cdee55 100644
--- a/test/functions.tm
+++ b/test/functions.tm
@@ -1,14 +1,15 @@
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
+func main()
+ >> add(3, 5)
+ = 8
+
+ >> cached_heap(1) == cached_heap(1)
+ = yes
+ >> cached_heap(1) == cached_heap(2)
+ = no