Skip to content

Commit 98d89f3

Browse files
authored
Fix test failure from Polar on Julia < 1.7 (#88)
1 parent a4a0329 commit 98d89f3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/coordinatesystems.jl

+5-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,11 @@
134134
@test Polar(SVector(0,2)) Polar(2/2)
135135
@test Polar(SVector(1,1)) Polar(sqrt(2),π/4)
136136
@test Polar([1,1]) Polar(sqrt(2),π/4)
137-
@test_throws "Polar transform takes a 2D coordinate" Polar([1,1,1])
137+
if Base.VERSION >= v"1.7"
138+
@test_throws "Polar transform takes a 2D coordinate" Polar([1,1,1])
139+
else
140+
@test_throws ErrorException("Polar transform takes a 2D coordinate") Polar([1,1,1])
141+
end
138142
end
139143
end
140144

0 commit comments

Comments
 (0)