summaryrefslogtreecommitdiff
path: root/tests/fizzbuzz.bth
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-06-26 13:11:00 +0100
committerubq323 <ubq323@ubq323.website>2024-06-26 13:11:00 +0100
commitc1ad2da9bd1497737c46c53e27f915cc26bc49a6 (patch)
tree5f701f22a0eed7d09056e1eafe1d60a9a48832a9 /tests/fizzbuzz.bth
parent63206b605c36140f2bd476e054b8318c8b08f472 (diff)
remove explicit toplevel (do ...) from tests
Diffstat (limited to 'tests/fizzbuzz.bth')
-rw-r--r--tests/fizzbuzz.bth15
1 files changed, 7 insertions, 8 deletions
diff --git a/tests/fizzbuzz.bth b/tests/fizzbuzz.bth
index 82e80cf..42c1760 100644
--- a/tests/fizzbuzz.bth
+++ b/tests/fizzbuzz.bth
@@ -1,10 +1,9 @@
-(do
- (set n 1)
- (while (< n 30)
- (puts
- (if (= 0 (% n 5))
- (if (= 0 (% n 3)) "fizzbuzz" "buzz")
- (if (= 0 (% n 3)) "fizz" n)))
- (set n (+ n 1))))
+(set n 1)
+(while (< n 30)
+ (puts
+ (if (= 0 (% n 5))
+ (if (= 0 (% n 3)) "fizzbuzz" "buzz")
+ (if (= 0 (% n 3)) "fizz" n)))
+ (set n (+ n 1)))