aboutsummaryrefslogtreecommitdiff
path: root/test/arrays.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-04 18:29:09 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-04 18:29:09 -0400
commit7b735ab6fc3e0bb368f1ca484168eaefbbe3ce9c (patch)
tree4a7c78bb0967b8fbc1042d901cf0346705d9d0d8 /test/arrays.tm
parent0b8074154e2671691050bdb3bcb33245625a056c (diff)
Misc fixes
Diffstat (limited to 'test/arrays.tm')
-rw-r--r--test/arrays.tm10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/arrays.tm b/test/arrays.tm
index 5816c359..5aaaa155 100644
--- a/test/arrays.tm
+++ b/test/arrays.tm
@@ -107,7 +107,7 @@ func main():
sorted : @[Int] = @[]
repeat:
sorted:insert(heap:heap_pop() or stop)
- >> sorted == sorted:sorted()
+ >> sorted[] == sorted:sorted()
= yes
for i in 10:
heap:heap_push((i*13337) mod 37)
@@ -115,7 +115,7 @@ func main():
sorted = @[]
repeat:
sorted:insert(heap:heap_pop() or stop)
- >> sorted == sorted:sorted()
+ >> sorted[] == sorted:sorted()
= yes
do:
@@ -162,10 +162,10 @@ func main():
>> ["a", "b", "c"]:find("b")
= 2?
>> ["a", "b", "c"]:find("XXX")
- = none:Int
+ = none
>> [10, 20]:first(func(i:&Int): i:is_prime())
- = none:Int
+ = none
>> [4, 5, 6]:first(func(i:&Int): i:is_prime())
= 2?
@@ -183,4 +183,4 @@ func main():
>> nums
= &[]
>> nums:pop()
- = none:Int
+ = none