From d08f795794b33a5d52e39c6b9f0c4e6e88fede3d Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 13 Aug 2024 01:30:25 -0400 Subject: Partially working first draft of bigints --- test/arrays.tm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') 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: -- cgit v1.2.3