diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 13:25:41 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 13:25:41 -0400 |
| commit | 95633b1cc2da5294d9aec8c7eb9fca9a15c1a8bf (patch) | |
| tree | d68536541a10464e5c3078fdcf7a4f6c00424a41 /test | |
| parent | 3b4a0e8b907bce9d5682b64ef02dfbf430762f5b (diff) | |
Reword test for clarity
Diffstat (limited to 'test')
| -rw-r--r-- | test/arrays.tm | 12 |
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: |
