aboutsummaryrefslogtreecommitdiff
path: root/test/lists.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-07-11 16:05:30 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-07-11 16:05:30 -0400
commit46b0dbc5a448249ddc9a6ce20465f0fa41de6d64 (patch)
treea353513c1fdb95baa2d225fa50972be3c9d11d4e /test/lists.tm
parent4834f3355d3b0355cb6ff7774d18e86ca0f5e38e (diff)
Use `assert` more in tests to give better error messages
Diffstat (limited to 'test/lists.tm')
-rw-r--r--test/lists.tm6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/lists.tm b/test/lists.tm
index 6281532c..fef23f5d 100644
--- a/test/lists.tm
+++ b/test/lists.tm
@@ -111,16 +111,14 @@ func main()
heap_order : @[Int]
repeat
heap_order.insert(heap.heap_pop() or stop)
- >> heap_order[] == heap_order.sorted()
- = yes
+ assert heap_order[] == heap_order.sorted()
heap_order[] = []
for i in 10
heap.heap_push((i*13337) mod 37)
>> heap
repeat
heap_order.insert(heap.heap_pop() or stop)
- >> heap_order[] == heap_order.sorted()
- = yes
+ assert heap_order[] == heap_order.sorted()
do
>> [i*10 for i in 5].from(3)