Skip to content

Commit 7bef237

Browse files
committed
drop module name for exported functions
1 parent 69b38a7 commit 7bef237

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

test/test_primitives.jl

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
1+
using GeoInterface
2+
using Test
23

34
@testset "Developer" begin
45
# Implement interface
@@ -19,7 +20,7 @@
1920
GeoInterface.geomtype(::MyCurve) = GeoInterface.LineStringTrait()
2021
GeoInterface.ngeom(::GeoInterface.LineStringTrait, geom::MyCurve) = 2
2122
GeoInterface.getgeom(::GeoInterface.LineStringTrait, geom::MyCurve, i) = MyPoint()
22-
GeoInterface.convert(::Type{MyCurve}, ::GeoInterface.LineStringTrait, geom) = geom
23+
convert(::Type{MyCurve}, ::GeoInterface.LineStringTrait, geom) = geom
2324

2425
GeoInterface.isgeometry(::MyPolygon) = true
2526
GeoInterface.geomtype(::MyPolygon) = GeoInterface.PolygonTrait()
@@ -29,15 +30,15 @@
2930

3031
@testset "Point" begin
3132
geom = MyPoint()
32-
@test GeoInterface.testgeometry(geom)
33+
@test testgeometry(geom)
3334
@test GeoInterface.x(geom) === 1
3435
@test GeoInterface.y(geom) === 2
35-
@test GeoInterface.ncoord(geom) === 2
36+
@test ncoord(geom) === 2
3637
end
3738

3839
@testset "LineString" begin
3940
geom = MyCurve()
40-
@test GeoInterface.testgeometry(geom)
41+
@test testgeometry(geom)
4142
@test !isnothing(GeoInterface.convert(MyCurve, geom))
4243

4344
@test GeoInterface.npoint(geom) == 2 # defaults to ngeom
@@ -49,7 +50,7 @@
4950

5051
@testset "Polygon" begin
5152
geom = MyPolygon()
52-
@test GeoInterface.testgeometry(geom)
53+
@test testgeometry(geom)
5354

5455
@test GeoInterface.nring(geom) == 2
5556
@test GeoInterface.nhole(geom) == 1
@@ -71,10 +72,10 @@ end
7172
struct Row end
7273
struct Point end
7374

74-
GeoInterface.isgeometry(::Point) = true
75-
GeoInterface.geomtype(::Point) = GeoInterface.PointTrait()
76-
GeoInterface.ncoord(::GeoInterface.PointTrait, geom::Point) = 2
77-
GeoInterface.getcoord(::GeoInterface.PointTrait, geom::Point, i) = [1, 2][i]
75+
isgeometry(::Point) = true
76+
geomtype(::Point) = GeoInterface.PointTrait()
77+
ncoord(::GeoInterface.PointTrait, geom::Point) = 2
78+
getcoord(::GeoInterface.PointTrait, geom::Point, i) = [1, 2][i]
7879

7980
GeoInterface.isfeature(::Row) = true
8081
GeoInterface.geometry(r::Row) = Point()

0 commit comments

Comments
 (0)