test/common/polygon_tests.rb in rgeo-0.2.6 vs test/common/polygon_tests.rb in rgeo-0.2.7
- old
+ new
@@ -53,10 +53,12 @@
assert_not_nil(polygon_)
assert(::RGeo::Feature::Polygon === polygon_)
assert_equal(::RGeo::Feature::Polygon, polygon_.geometry_type)
assert(exterior_.eql?(polygon_.exterior_ring))
assert_equal(0, polygon_.num_interior_rings)
+ assert_nil(polygon_.interior_ring_n(0))
+ assert_nil(polygon_.interior_ring_n(-1))
end
def test_creation_one_hole
point1_ = @factory.point(0, 0)
@@ -73,9 +75,11 @@
assert(::RGeo::Feature::Polygon === polygon_)
assert_equal(::RGeo::Feature::Polygon, polygon_.geometry_type)
assert(exterior_.eql?(polygon_.exterior_ring))
assert_equal(1, polygon_.num_interior_rings)
assert(interior_.eql?(polygon_.interior_ring_n(0)))
+ assert_nil(polygon_.interior_ring_n(1))
+ assert_nil(polygon_.interior_ring_n(-1))
end
def test_fully_equal
point1_ = @factory.point(0, 0)