Skip to content

Commit fa52d60

Browse files
committed
Add tests for metadata
1 parent 66b861d commit fa52d60

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/runtests.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ using LinearAlgebra
7575
filtered = filter(i -> i.value < 0.7, x)
7676
@test length(filtered) == 7
7777
end
78+
@test GeometryBasics.getcolumn(plain, :name) == pnames
79+
@test GeometryBasics.MetaType(Polygon) == PolygonMeta{Polygon,T,Typ,Names,Types} where Types where Names where Typ<:GeometryBasics.AbstractPolygon{Polygon,T} where T
80+
@test GeometryBasics.MetaType()
7881
end
7982

8083
@testset "point with metadata" begin
@@ -360,6 +363,7 @@ end
360363

361364
@test hasproperty(m, :xx)
362365
@test hasproperty(m, :color)
366+
# @test GeometryBasics.MetaType(Simplex) == ERROR: No Meta Type for Simplex
363367

364368
@test m.xx === xx
365369
@test m.color === color

0 commit comments

Comments
 (0)