From 5cfc01ac09ae3b2d53be8afe72f8fd60c9926179 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 9 Mar 2024 16:46:25 -0500 Subject: Add function/caching test --- test/functions.tm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/functions.tm (limited to 'test/functions.tm') 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 + -- cgit v1.2.3