From 95633b1cc2da5294d9aec8c7eb9fca9a15c1a8bf Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 6 Apr 2025 13:25:41 -0400 Subject: Reword test for clarity --- test/arrays.tm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/arrays.tm b/test/arrays.tm index 5aaaa155..4834f0ab 100644 --- a/test/arrays.tm +++ b/test/arrays.tm @@ -104,18 +104,18 @@ func main(): >> heap := @[(i * 1337) mod 37 for i in 10] >> heap:heapify() >> heap - sorted : @[Int] = @[] + heap_order : @[Int] = @[] repeat: - sorted:insert(heap:heap_pop() or stop) - >> sorted[] == sorted:sorted() + heap_order:insert(heap:heap_pop() or stop) + >> heap_order[] == heap_order:sorted() = yes + heap_order[] = [] for i in 10: heap:heap_push((i*13337) mod 37) >> heap - sorted = @[] repeat: - sorted:insert(heap:heap_pop() or stop) - >> sorted[] == sorted:sorted() + heap_order:insert(heap:heap_pop() or stop) + >> heap_order[] == heap_order:sorted() = yes do: -- cgit v1.2.3