Skip to content

Commit

Permalink
one last test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaqz committed Dec 30, 2022
1 parent bfaf4f5 commit 7eda934
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,11 @@ include("geojson_samples.jl")
@testset "Tables" begin
p = GeoJSON.Point(coordinates = [1.1, 2.2])
f = GeoJSON.Feature(p; properties = (a = 1, geometry = "g", b = 2))
features = [f]
# other constructors
@test DataFrame([GeoJSON.Feature(geometry = p, properties = (a = 1, geometry = "g", b = 2))]) ==
DataFrame([GeoJSON.Feature((geometry = p, properties = (a = 1, geometry = "g", b = 2)))]) ==
DataFrame(GeoJSON.FeatureCollection((type="FeatureCollection", features=[f]))) ==
DataFrame(GeoJSON.FeatureCollection((; type="FeatureCollection", features))) ==
DataFrame(GeoJSON.FeatureCollection(; features))

# Round trip DataFrame -> FeatureCollection -> DataFrame
Expand Down

0 comments on commit 7eda934

Please sign in to comment.