diff options
author | ubq323 <ubq323@ubq323.website> | 2024-06-25 01:37:52 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2024-06-25 01:37:52 +0100 |
commit | 6aef97b52844b8868e5ada38ce0936619c1077a7 (patch) | |
tree | ba6db4ccf6c3076ada8e8ebf2a1ee94e8ac362dc /tests/func2.bth | |
parent | f76f5a8c244ac6d04e4d89778a6d8c2c2040cdc9 (diff) |
more function tests
Diffstat (limited to 'tests/func2.bth')
-rw-r--r-- | tests/func2.bth | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/func2.bth b/tests/func2.bth new file mode 100644 index 0000000..fd16eda --- /dev/null +++ b/tests/func2.bth @@ -0,0 +1,6 @@ +(do + (set f1 (fn (a) (* a a))) + (set f2 (fn (a b) (+ a b))) + (puts (f1 6)) + (puts (f2 20 40)) + (f1 (f2 2 1))) |