Skip to content

Commit 080c8a4

Browse files
committed
Fix test for fastindices deprecation
1 parent ead8013 commit 080c8a4

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ComponentArrays"
22
uuid = "b0b7db55-cfe3-40fc-9ded-d10e2dbeff66"
33
authors = ["Jonnie Diegelman <47193959+jonniedie@users.noreply.github.com>"]
4-
version = "0.9.5"
4+
version = "0.9.6"
55

66
[deps]
77
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"

test/runtests.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,13 @@ cmat2 = ca2 .* ca2'
3232

3333
caa = ComponentArray(a=ca, b=sq_mat)
3434

35-
_a, _b, _c = fastindices(:a, :b, :c)
35+
_a, _b, _c = Val.((:a, :b, :c))
3636

3737

3838
## Tests
3939
@testset "Utilities" begin
40-
@test ComponentArrays.getval.(fastindices(:a, :b, :c)) == (:a, :b, :c)
41-
@test fastindices(:a, Val(:b)) == (Val(:a), Val(:b))
42-
@test fastindices(("a", Val(:b))) == (Val(:a), Val(:b))
40+
@test_deprecated ComponentArrays.getval.(fastindices(:a, :b, :c)) == (:a, :b, :c)
41+
@test_deprecated fastindices(:a, Val(:b)) == (Val(:a), Val(:b))
4342

4443
@test collect(ComponentArrays.partition(collect(1:12), 3)) == [[1,2,3], [4,5,6], [7,8,9], [10,11,12]]
4544
@test size(collect(ComponentArrays.partition(zeros(2,2,2), 1, 2, 2))[2,1,1]) == (1, 2, 2)

0 commit comments

Comments
 (0)