Skip to content

Commit b7a9a75

Browse files
Fix deprecation warnings in test suite
Remove test code that called deprecated linear indexing APIs without @test_deprecated wrappers, causing warnings in CI output: - interface_tests.jl: Remove lastindex(va) test without dimension arg (already covered by lastindex(va, 2) test on preceding lines) - copy_static_array_test.jl: Replace a_voa[i] with a_voa.u[i] Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent eb87c39 commit b7a9a75

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

test/copy_static_array_test.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ b_voa = copy(a_voa)
9090
a_voa[:, 1] = SVector(1.0)
9191
a_voa[:, 2] = SVector(1.0)
9292
@. b_voa = a_voa
93-
@test b_voa[:, 1] == a_voa[1]
94-
@test b_voa[:, 2] == a_voa[2]
93+
@test b_voa[:, 1] == a_voa.u[1]
94+
@test b_voa[:, 2] == a_voa.u[2]
9595

9696
a = [SVector(0.0) for _ in 1:2]
9797
a_voa = VectorOfArray(a)

test/interface_tests.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,6 @@ last_col = lastindex(testva_end, 2)
7373
@inferred testva_end[1, last_col]
7474
@inferred testva_end[1, 1:last_col]
7575
@test testva_end[1, last_col] == 2.0
76-
last_col = lastindex(testva_end)
77-
@inferred testva_end[1, last_col]
78-
@inferred testva_end[1, 1:last_col]
79-
@test testva_end[1, last_col] == 2.0
8076
last_row = lastindex(testva_end, 1)
8177
@inferred testva_end[last_row, 1]
8278
@inferred testva_end[1:last_row, 1]

0 commit comments

Comments
 (0)