summaryrefslogtreecommitdiff
path: root/tests/func5.bth
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-06-26 14:51:01 +0100
committerubq323 <ubq323@ubq323.website>2024-06-26 14:51:01 +0100
commit6deeb9630d4b4e7d672ab851dcd4fe3d0d3d2865 (patch)
tree1890d523da9a1c797cf724debbd720db9a2839d5 /tests/func5.bth
parent517e9fe048844533d927c4e3b6d021f82ccea984 (diff)
func5 test
Diffstat (limited to 'tests/func5.bth')
-rw-r--r--tests/func5.bth8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/func5.bth b/tests/func5.bth
new file mode 100644
index 0000000..890e706
--- /dev/null
+++ b/tests/func5.bth
@@ -0,0 +1,8 @@
+(set f (fn (a) (say (* a a))))
+(f 2)
+(f 4)
+(f 6)
+(f 8)
+(let (a 5)
+ (f a)
+ (f (* 2 a)))