From 6aef97b52844b8868e5ada38ce0936619c1077a7 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Tue, 25 Jun 2024 01:37:52 +0100 Subject: more function tests --- tests/func2.bth | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/func2.bth (limited to 'tests/func2.bth') 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))) -- cgit v1.2.3