MCPcopy Create free account
hub / github.com/Notgnoshi/generative / test_serialize_flat_points

Function test_serialize_flat_points

tests/test_wkio.py:69–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67
68
69def test_serialize_flat_points():
70 expected = [
71 "(0.0, 0.0)\n",
72 "(1.0, 1.0)\n",
73 "(2.0, 2.0, 2.0)\n",
74 ]
75 geoms = [Point(0, 0), Point(1, 1), Point(2, 2, 2)]
76 output = io.StringIO()
77 serialize_flat(flatten(geoms), output)
78 output.seek(0)
79 actual = output.readlines()
80 assert actual == expected
81
82
83def test_serialize_flat_linestring():

Callers

nothing calls this directly

Calls 3

PointClass · 0.90
serialize_flatFunction · 0.90
flattenFunction · 0.90

Tested by

no test coverage detected