Skip to content

Commit fdf50ca

Browse files
committed
Rename test enum values to avoid clashing with tests
The enum should potentially be added inside a module, but this way it's next to the tests.
1 parent 4e61f0d commit fdf50ca

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/broadcast.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ end
146146

147147
@testset "" begin
148148
# Issue #239 - broadcast with non-numeric element types
149-
@eval @enum Axis X Y Z
150-
@testinf (SVector(X,Y,Z) .== X) == SVector(true,false,false)
151-
mv = MVector(X,Y,Z)
152-
@testinf broadcast!(identity, mv, X) == MVector(X,X,X)
153-
@test mv == SVector(X,X,X)
149+
@eval @enum Axis aX aY aZ
150+
@testinf (SVector(aX,aY,aZ) .== aX) == SVector(true,false,false)
151+
mv = MVector(aX,aY,aZ)
152+
@testinf broadcast!(identity, mv, aX) == MVector(aX,aX,aX)
153+
@test mv == SVector(aX,aX,aX)
154154
end
155155
end

0 commit comments

Comments
 (0)