-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
In the tests I see that there are some places where === is used to compare results of axes, which is good since 1:3 == Base.OneTo(3), and some places want to test specifically for Base.OneTo(3)
But I also see many cases of e.g. a == IdOffsetRange(3:5) and a == IdentityUnitRange(-4:-3), and I don't see the point of doing that instead of a == 3:5, unless the test is really intended to check for ===, in which case in at least a few places it should be a === OffsetArrays.IdOffsetRange(Base.OneTo(3), 2).
For example:
OffsetArrays.jl/test/runtests.jl
Line 446 in 7294f3d
| @test axes(v) == (Base.OneTo(1), IdentityUnitRange(-4:-3)) |
johnnychen94
Metadata
Metadata
Assignees
Labels
No labels