Skip to content

Commit

Permalink
Avoid using unname() in diff() test in test/functions_math.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Glenn Moynihan <glenn.moynihan@invenialabs.co.uk>
  • Loading branch information
mjp98 and Glenn Moynihan authored Oct 24, 2022
1 parent de41d29 commit 91de810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/functions_math.jl
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ end
@testset "diff" begin
arr = [1.0 2; 3 4]
nda = NamedDimsArray{(:a, :b)}(arr)
@test unname(diff(nda; dims=:a)) == diff(arr; dims=1)
@test diff(nda; dims=:a) == diff(arr; dims=1)
@test typeof(diff(nda; dims=:a)) == typeof(nda)
@test diff(nda; dims=:b) == diff(nda; dims=2)
end
Expand Down

0 comments on commit 91de810

Please sign in to comment.