Skip to content

Commit 80e94c5

Browse files
committed
fix @test_warn
1 parent a00468f commit 80e94c5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/runtests.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,12 @@ end
463463
X = [(2t)'; -(0.01t)']
464464
order = [2, 1]
465465
# Should warn since both rows of Y are closest to the first row of X
466-
@test_warn "`match_slices!` may not have found the best ordering; using O(n²) greedy approach." (order2_found = match_slices!(X, Y; dims=1))
466+
@test_warn "`match_slices!` may not have found the best ordering; using O(n²) greedy approach." match_slices!(X, Y; dims=1)
467+
468+
Y = [(1.9t)'; (2t)']
469+
X = [(2t)'; -(0.01t)']
470+
order = [2, 1]
471+
order2_found = match_slices!(X, Y; dims=1)
467472
@test order2_found == invperm(order) # Should still find the correct inverse permutation
468473
end
469474
end

0 commit comments

Comments
 (0)