diff options
author | ubq323 <ubq323@ubq323.website> | 2024-06-21 16:01:46 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2024-06-21 16:01:46 +0100 |
commit | 81662aa56b8ad2fa397b1d3e9dd3bb398c7d1798 (patch) | |
tree | ac788aa65d938f6fe1967863e5fe2296e6eacd7b /tests | |
parent | 377822b957c442b2ff0882b8325033487037be2b (diff) |
print -> puts
Diffstat (limited to 'tests')
-rw-r--r-- | tests/fizzbuzz.bth | 2 | ||||
-rw-r--r-- | tests/vars.bth | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/fizzbuzz.bth b/tests/fizzbuzz.bth index e70c2c1..82e80cf 100644 --- a/tests/fizzbuzz.bth +++ b/tests/fizzbuzz.bth @@ -1,7 +1,7 @@ (do (set n 1) (while (< n 30) - (print + (puts (if (= 0 (% n 5)) (if (= 0 (% n 3)) "fizzbuzz" "buzz") (if (= 0 (% n 3)) "fizz" n))) diff --git a/tests/vars.bth b/tests/vars.bth index 7799acf..a524ae6 100644 --- a/tests/vars.bth +++ b/tests/vars.bth @@ -2,8 +2,8 @@ (set a 5) (set b 10) (set thethe 1234) - (print (+ a b)) - (print (- thethe a)) - (print (+ (set a 90) b)) - (print a) + (puts (+ a b)) + (puts (- thethe a)) + (puts (+ (set a 90) b)) + (puts a) nil) |