We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6998c93 commit 0b1dc52Copy full SHA for 0b1dc52
test/test_geos_functions.jl
@@ -198,12 +198,12 @@ end
198
@test LibGEOS.getX(cs_, 1) ≈ x atol = 1e-5
199
@test LibGEOS.getY(cs_, 1) ≈ y atol = 1e-5
200
@test LibGEOS.getZ(cs_, 1) ≈ z atol = 1e-5
201
- @test_throws MethodError LibGEOS.getX(cs_, 0, x)
202
- @test_throws MethodError LibGEOS.getX(cs_, 2, x)
203
- @test_throws MethodError LibGEOS.getY(cs_, 0, y)
204
- @test_throws MethodError LibGEOS.getY(cs_, 2, y)
205
- @test_throws MethodError LibGEOS.getZ(cs_, 0, z)
206
- @test_throws MethodError LibGEOS.getZ(cs_, 2, z)
+ @test_throws ErrorException LibGEOS.getX(cs_, 0)
+ @test_throws ErrorException LibGEOS.getX(cs_, 2)
+ @test_throws ErrorException LibGEOS.getY(cs_, 0)
+ @test_throws ErrorException LibGEOS.getY(cs_, 2)
+ @test_throws ErrorException LibGEOS.getZ(cs_, 0)
+ @test_throws ErrorException LibGEOS.getZ(cs_, 2)
207
208
cs_ = LibGEOS.createCoordSeq(1, ndim = 3)
209
@test LibGEOS.getSize(cs_) == 1
0 commit comments