From 2e91472d0eeeaf384ccde70a59a39cf2db497fe3 Mon Sep 17 00:00:00 2001 From: Shunsuke Shibayama <45118249+mtshiba@users.noreply.github.com> Date: Tue, 24 Jan 2023 21:15:09 +0900 Subject: [PATCH] Update array.er --- tests/not_yet/array.er | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/not_yet/array.er b/tests/not_yet/array.er index 08cf0495..9a5745ac 100644 --- a/tests/not_yet/array.er +++ b/tests/not_yet/array.er @@ -3,7 +3,7 @@ mut_content_arr = [1, 2, 3, 4, 5].into [Int!; 5] telescoping_arr = [1, 2, 3, 4, 5].into [Int; !5] mut_arr = [1, 2, 3, 4, 5].into [Int!; !5] -mut_content_arr.map!(x -> x + 1) +mut_content_arr.map! x -> x + 1 # A mutable array class inherits an immutable array class, so a mutable array can compare with an immutable array assert mut_content_arr == [2, 3, 4, 5, 6] # This is invalid: telescoping_arr.map!(x -> x + 1)