> /tmp/stackage-build7/vectortiles-1.1.0$ dist/build/vectortiles-test/vectortiles-test
Unit Tests
Protobuf
Decoding
onepoint.mvt -> Raw.Tile: OK
linestring.mvt -> Raw.Tile: OK
roads.mvt -> Raw.Tile: OK
onepoint.mvt -> VectorTile: OK
linestring.mvt -> VectorTile: OK
roads.mvt -> VectorTile: OK (0.02s)
Encoding
RawVectorTile <-> VectorTile
One Point: OK
One LineString: OK
One Polygon: OK
roads.mvt: OK
Serialization Isomorphism
onepoint.mvt <-> Raw.Tile: FAIL
expected: "1A180A084F6E65506F696E74120718012203090A0A2880207801"
but got: "1A1878010A084F6E65506F696E74120718012203090A0A288020"
linestring.mvt <-> Raw.Tile: FAIL
expected: "1A220A0D4F6E654C696E65537472696E67120C18022208090A0A0AD612D6122880207801"
but got: "1A2278010A0D4F6E654C696E65537472696E67120C18022208090A0A0AD612D612288020"
testTile <-> protobuf bytes: OK
Geometries
Z-encoding Isomorphism: OK
Command Parsing: OK
[Word32] <-> [Command]: OK
[Word32] <-> V.Vector Point: OK
[Word32] <-> V.Vector LineString: OK
[Word32] <-> V.Vector Polygon (2 ex): OK
[Word32] <-> V.Vector Polygon (1 ex, 1 in): OK
2 out of 20 tests failed (0.05s)
Thanks @snoyberg , I've since removed those tests, as they will always fail. The protobuf encode/decode process does not form a perfect byte-to-byte isomorphism, for some unknown reason.