summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-06-22 18:22:24 +0100
committerubq323 <ubq323@ubq323.website>2024-06-22 18:22:24 +0100
commit8c3037662ba572a6935170dbd4cb8cc8a3636417 (patch)
tree1d585a5f0eab8eed96d0741421656f11c99c7c33 /tests
parent1d496f5f7f01b20fb34e63d1c85a33d8decd1894 (diff)
compilation of functions, and some parts of interpreting them
Diffstat (limited to 'tests')
-rw-r--r--tests/func1.bth3
-rw-r--r--tests/func1.out1
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/func1.bth b/tests/func1.bth
new file mode 100644
index 0000000..c46e956
--- /dev/null
+++ b/tests/func1.bth
@@ -0,0 +1,3 @@
+(do
+ (set f (fn (_) 42))
+ (f 0))
diff --git a/tests/func1.out b/tests/func1.out
new file mode 100644
index 0000000..d81cc07
--- /dev/null
+++ b/tests/func1.out
@@ -0,0 +1 @@
+42