aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-10-04 13:21:56 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-10-04 13:21:56 -0400
commit6b9055db7c03c09654c0605b96a37d50bf563fa9 (patch)
treeca6ee66251fe1ba0beceff21bca52be2953b0573 /test
parent8f346b48aa49ac0590c9c77edb75c63560398e1a (diff)
Deprecate readonly pointers for now
Diffstat (limited to 'test')
-rw-r--r--test/arrays.tm6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/arrays.tm b/test/arrays.tm
index 0618a2fc..e1c31cf6 100644
--- a/test/arrays.tm
+++ b/test/arrays.tm
@@ -95,10 +95,10 @@ func main():
>> nums
= [-20, 10, 30]
# Custom sort functions:
- >> nums:sort(func(x:&%Int,y:&%Int): x:abs() <> y:abs())
+ >> nums:sort(func(x,y:&Int): x:abs() <> y:abs())
>> nums
= [10, -20, 30]
- >> nums:sort(func(x:&%Int,y:&%Int): y[] <> x[])
+ >> nums:sort(func(x,y:&Int): y[] <> x[])
>> nums
= [30, 10, -20]
@@ -159,7 +159,7 @@ func main():
>> nums:sort()
>> [nums:binary_search(i) for i in nums]
= [1, 2, 3, 4, 5]
- >> nums:sort(func(a,b:&%Int): a:abs() <> b:abs())
+ >> nums:sort(func(a,b:&Int): a:abs() <> b:abs())
>> [nums:binary_search(i, func(a,b:&Int): a:abs() <> b:abs()) for i in nums]
= [1, 2, 3, 4, 5]