Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eliascarv committed Oct 3, 2024
1 parent 05a533b commit 45b040e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/writer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@
GI.getgeom(::GI.LineStringTrait, l::LineString32, i) = getindex(l.points, i)

file = tempname()
Shapefile.write(file, Point32(0,0))
Shapefile.write(file, Point32(0, 0))
t = Shapefile.Table(file)
@test only(t.geometry) == Point(0,0)
@test only(t.geometry) == Point(0, 0)

file = tempname()
geom = LineString32([Point32(0,0), Point32(1,0), Point32(1,1), Point32(0,1)])
geom = LineString32([Point32(0, 0), Point32(1, 0), Point32(1, 1), Point32(0, 1)])
Shapefile.write(file, geom)
t = Shapefile.Table(file)
@test only(t.geometry) == Polyline(Rect(0.0, 0.0, 1.0, 1.0), [0], [Point(0,0), Point(1,0), Point(1,1), Point(0,1)])
@test only(t.geometry) == Polyline(Rect(0, 0, 1, 1), [0], [Point(0, 0), Point(1, 0), Point(1, 1), Point(0, 1)])

# feature
struct F end
Expand Down

0 comments on commit 45b040e

Please sign in to comment.