diff options
author | ubq323 <ubq323@ubq323.website> | 2024-06-21 12:56:30 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2024-06-21 12:56:30 +0100 |
commit | 21994864559386f1d11c001d6d27714cbf624a15 (patch) | |
tree | b9a5e76bdc8be9a41970cd6620aab7a3637b7e6a /tests/fizzbuzz.bþ | |
parent | 671645c370498955eb101695bd9099bf4caf5aea (diff) |
add tests, and make dumping disasm optional
Diffstat (limited to 'tests/fizzbuzz.bþ')
-rw-r--r-- | tests/fizzbuzz.bþ | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/fizzbuzz.bþ b/tests/fizzbuzz.bþ new file mode 100644 index 0000000..e70c2c1 --- /dev/null +++ b/tests/fizzbuzz.bþ @@ -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)))) + + |