aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-08-13 01:30:25 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-08-13 01:30:25 -0400
commitd08f795794b33a5d52e39c6b9f0c4e6e88fede3d (patch)
tree7267e0828b73685f9af0c3e9cf58212c45af289c /test
parentc1c889b024529ac754f83caec4cc15971123d07b (diff)
Partially working first draft of bigints
Diffstat (limited to 'test')
-rw-r--r--test/arrays.tm4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/arrays.tm b/test/arrays.tm
index 74b5eb25..2b5a8474 100644
--- a/test/arrays.tm
+++ b/test/arrays.tm
@@ -101,7 +101,7 @@ func main():
>> ["A", "B", "C"]:sample(10, [1.0, 0.5, 0.0])
do:
- >> heap := [Int.random(max=50) for _ in 10]
+ >> heap := [Int.random(1, 50) for _ in 10]
>> heap:heapify()
>> heap
sorted := [:Int]
@@ -110,7 +110,7 @@ func main():
>> sorted == sorted:sorted()
= yes
for _ in 10:
- heap:heap_push(Int.random(max=50))
+ heap:heap_push(Int.random(1, 50))
>> heap
sorted = [:Int]
while #heap > 0: