aboutsummaryrefslogtreecommitdiff
path: root/test/integers.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-11-03 22:39:46 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-11-03 22:39:46 -0500
commitd0ebb66b30a723db9c0c6d9a57877b84e7dff386 (patch)
treebff16695a37274685d1b89a3ccb85cc9d65bc0c8 /test/integers.tm
parentfc9a6f1416be514e9d26b301d05e7e347560560b (diff)
Fix up test to use RNGs
Diffstat (limited to 'test/integers.tm')
-rw-r--r--test/integers.tm5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/integers.tm b/test/integers.tm
index 9b5b6b4f..ad9c40d7 100644
--- a/test/integers.tm
+++ b/test/integers.tm
@@ -50,7 +50,6 @@ func main():
>> x:octal()
= "0o173"
- >> Int.random(1, 100)
>> Int64.min
= -9223372036854775808[64]
>> Int64.max
@@ -87,8 +86,8 @@ func main():
do:
for in 20:
- >> n := Int.random(-999999, 999999)
- >> d := Int.random(-999, 999)
+ >> n := random:int(-999999, 999999)
+ >> d := random:int(-999, 999)
!! n=$n, d=$d:
>> (n/d)*d + (n mod d) == n
= yes