summaryrefslogtreecommitdiff
path: root/tests/func4.bth
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-06-25 01:37:52 +0100
committerubq323 <ubq323@ubq323.website>2024-06-25 01:37:52 +0100
commit6aef97b52844b8868e5ada38ce0936619c1077a7 (patch)
treeba6db4ccf6c3076ada8e8ebf2a1ee94e8ac362dc /tests/func4.bth
parentf76f5a8c244ac6d04e4d89778a6d8c2c2040cdc9 (diff)
more function tests
Diffstat (limited to 'tests/func4.bth')
-rw-r--r--tests/func4.bth7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/func4.bth b/tests/func4.bth
new file mode 100644
index 0000000..7c04cf3
--- /dev/null
+++ b/tests/func4.bth
@@ -0,0 +1,7 @@
+(do
+ (set f1 (fn (x) (+ x 10)))
+ (set f2 (fn (x) (* x 10)))
+ (set g (fn (f x) (puts (f x)) (puts (f x))))
+ (g f1 26)
+ (g f2 6)
+ nil)