diff --git a/test/basic_indexing.jl b/test/basic_indexing.jl index 5abaee07..b3767c30 100644 --- a/test/basic_indexing.jl +++ b/test/basic_indexing.jl @@ -61,8 +61,8 @@ testvb = deepcopy(testva) @test_deprecated testva[1:2] @test_deprecated testva[begin] @test_deprecated testva[end] -@test testva[begin] == testva[:, begin] == first(testva) -@test testva[end] == testva[:, end] == last(testva) +@test testva[:, begin] == first(testva) +@test testva[:, end] == last(testva) @test testa[:, 1] == recs[1] @test testva.u == recs @test testva[: ,2:end] == VectorOfArray([recs[i] for i in 2:length(recs)]) diff --git a/test/interface_tests.jl b/test/interface_tests.jl index 61abf227..bb47337f 100644 --- a/test/interface_tests.jl +++ b/test/interface_tests.jl @@ -98,12 +98,10 @@ bool_idx = rand(Bool, 10) for (voaidx, arridx) in [ ((:,), (:,)), ((3:5,), (3:5,)), - ((:, 3:5), (3:5,)), - ((1, 3:5), (3:5,)), - ((:, bool_idx), (bool_idx,)) + ((bool_idx,), (bool_idx,)) ] arr_view = view(arrvc, arridx...) - voa_view = view(testvc, voaidx...) + voa_view = view(testvc.u, voaidx...) @test size(arr_view) == size(voa_view) @test all(arr_view .== voa_view) end @@ -229,7 +227,7 @@ function f(u1,u2,u3) u3 .= u1 .+ u2 end f(u1,u2,u3) -@test (@allocated f(u1,u2,u3)) == 0 +@test (@allocated f(u1,u2,u3)) == 0 yy = [2.0 1.0; 2.0 1.0] zz = x .+ yy