aboutsummaryrefslogtreecommitdiff
path: root/test/integers.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-08-18 14:44:15 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-08-18 14:44:15 -0400
commitf4b04a1b8cd882e25fee592c819650c9b7e8566b (patch)
treedcecb8b4f83d569ebb00beb79988222d195b8f4c /test/integers.tm
parent04603308af3a2984d42eaa9e301cac0ffbded2a4 (diff)
Improved syntax for dollar-string literals
Diffstat (limited to 'test/integers.tm')
-rw-r--r--test/integers.tm4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integers.tm b/test/integers.tm
index 36119f01..11603b22 100644
--- a/test/integers.tm
+++ b/test/integers.tm
@@ -28,7 +28,7 @@ func main():
nums := ""
for x in 5:
- nums ++= "{x},"
+ nums ++= "$x,"
>> nums
= "1,2,3,4,5,"
@@ -79,6 +79,6 @@ func main():
for in 20:
>> n := Int.random(-999999, 999999)
>> d := Int.random(-999, 999)
- //! n={n}, d={d}:
+ //! n=$n, d=$d:
>> (n/d)*d + (n mod d) == n
= yes