aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/arrays.tm12
1 files 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: