Skip to content

Commit

Permalink
Fix broken test
Browse files Browse the repository at this point in the history
It seems like we were previously testing for behaviour that didn't match arrays...
  • Loading branch information
sefffal committed Jun 12, 2024
1 parent 5153098 commit d4d28c4
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -301,21 +301,8 @@ end
img = AstroImage(arr1)

# https://github.com/JuliaAstro/AstroImages.jl/issues/32
@test reverse(img, dims=1) == reverse(img) == [
7 8 9
4 5 6
1 2 3
]
@test reverse(img, dims=2) == [
3 2 1
6 5 4
9 8 7
]
@test reverse(img, dims=(1,2)) == [
9 8 7
6 5 4
3 2 1
]
@test reverse(img, dims=1) == reverse(arr1,dims=1)
@test reverse(img) == reverse(arr1)


# https://github.com/JuliaAstro/AstroImages.jl/issues/33
Expand Down

0 comments on commit d4d28c4

Please sign in to comment.