mirror of
https://github.com/wassname/geopandas.git
synced 2026-10-29 13:10:29 +08:00
TST: add missing assertions
This commit is contained in:
1 parent
27d6ce4d98
commit
f573b541c2
1 file changed
+4
-2
@@ -228,9 +228,11 @@ class TestSeries(unittest.TestCase):
|
||||
|
||||
def test_interpolate(self):
|
||||
res = self.g5.interpolate(0.75, normalized=True)
|
||||
geom_equals(res, GeoSeries([Point(0.5, 1.0), Point(0.75, 1.0)]))
|
||||
self.assertTrue(geom_equals(res, GeoSeries([Point(0.5, 1.0),
|
||||
Point(0.75, 1.0)])))
|
||||
res = self.g5.interpolate(1.5)
|
||||
geom_equals(res, GeoSeries([Point(0.5, 1.0), Point(1.0, 0.5)]))
|
||||
self.assertTrue(geom_equals(res, GeoSeries([Point(0.5, 1.0),
|
||||
Point(1.0, 0.5)])))
|
||||
|
||||
def test_project(self):
|
||||
res = self.g5.project(Point(1.0, 0.5))
|
||||
|
||||
Reference in new issue
Block a user