aboutsummaryrefslogtreecommitdiff
path: root/test/integers.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-06 16:07:23 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-06 16:07:23 -0400
commit6782cc5570e194791ca6cdd695b88897e9145564 (patch)
treea428e9d954aca251212ec1cf15bd35e0badce630 /test/integers.tm
parent448e805293989b06e07878a4a87fdd378f7c6e02 (diff)
No more colons for blocks
Diffstat (limited to 'test/integers.tm')
-rw-r--r--test/integers.tm12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/integers.tm b/test/integers.tm
index 508a38ae..72a195b4 100644
--- a/test/integers.tm
+++ b/test/integers.tm
@@ -1,4 +1,4 @@
-func main():
+func main()
>> 2 + 3
= 5
@@ -37,7 +37,7 @@ func main():
= 1
nums := ""
- for x in 5:
+ for x in 5
nums ++= "$x,"
>> nums
= "1,2,3,4,5,"
@@ -66,7 +66,7 @@ func main():
>> Int(2.1, truncate=yes)
= 2
- do:
+ do
>> small_int := 1
= 1
>> max_small_int := 536870911
@@ -84,11 +84,11 @@ func main():
>> super_big + 1
= 10000000000000000000000
- do:
+ do
interesting_numerators := [-999999, -100, -23, -1, 0, 1, 23, 100, 999999]
interesting_denominators := [-99, -20, -17, -1, 1, 17, 20, 99]
- for n in interesting_numerators:
- for d in interesting_denominators:
+ for n in interesting_numerators
+ for d in interesting_denominators
>> (n/d)*d + (n mod d) == n
= yes