From 21994864559386f1d11c001d6d27714cbf624a15 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Fri, 21 Jun 2024 12:56:30 +0100 Subject: add tests, and make dumping disasm optional --- "tests/fizzbuzz.b\303\276" | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 "tests/fizzbuzz.b\303\276" (limited to 'tests/fizzbuzz.bþ') diff --git "a/tests/fizzbuzz.b\303\276" "b/tests/fizzbuzz.b\303\276" new file mode 100644 index 0000000..e70c2c1 --- /dev/null +++ "b/tests/fizzbuzz.b\303\276" @@ -0,0 +1,10 @@ +(do + (set n 1) + (while (< n 30) + (print + (if (= 0 (% n 5)) + (if (= 0 (% n 3)) "fizzbuzz" "buzz") + (if (= 0 (% n 3)) "fizz" n))) + (set n (+ n 1)))) + + -- cgit v1.2.3