From 15e76f2c4bbe4c08fdcd5c6979b276fd027b5bec Mon Sep 17 00:00:00 2001 From: Justin Poehnelt Date: Tue, 9 Nov 2021 12:49:55 -0700 Subject: [PATCH] test: add test case --- src/util.test.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/util.test.ts b/src/util.test.ts index 8b1c8b49..7045ab2c 100644 --- a/src/util.test.ts +++ b/src/util.test.ts @@ -128,6 +128,14 @@ test.each([ y: -111234.63180200469, }, }, + { + latLng: { lat: 48.86116799396176, lng: 2.3241970462324497 }, // x: 258728.43168982657, y: 6251337.255028437 + reference: { lat: 48.86267605556572, lng: 2.3190953037457054 }, // x: 258160.50831404378, y: 6251592.434839309 + relative: { + x: 567.288771994994, + y: -254.89467016328126, + }, + }, ])( "latLngToVector3Relative is correct: %# %j", ({ latLng, reference, relative }) => {