From 5e1894d3c2524b8ad59758067f2092b75aa32fe9 Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Wed, 13 Jun 2018 11:09:51 -0700 Subject: [PATCH] Fix test_staticarrays.jl --- test/test_staticarrays.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_staticarrays.jl b/test/test_staticarrays.jl index 8c635c6..1ec0c0f 100644 --- a/test/test_staticarrays.jl +++ b/test/test_staticarrays.jl @@ -3,8 +3,8 @@ using StaticArrays obj = StaticArrays.@SMatrix [1 2; 3 4] l = @lens _[2,1] @test get(l, obj) == 3 -@test_broken set(l, obj, 5) == StaticArrays.@SMatrix [1 2; 5 4] -@test_broken setindex(obj, 5, 2, 1) == StaticArrays.@SMatrix [1 2; 5 4] +@test set(l, obj, 5) == StaticArrays.@SMatrix [1 2; 5 4] +@test setindex(obj, 5, 2, 1) == StaticArrays.@SMatrix [1 2; 5 4] v = @SVector [1,2,3] @test (@set v[1] = 10) === @SVector [10,2,3]