From af5217f7a621585629ddbc4c51b02458ff3b2dc6 Mon Sep 17 00:00:00 2001 From: Jonas Siedentop <Jonas@Sieden.top> Date: Wed, 14 Feb 2024 21:34:06 +0100 Subject: [PATCH] another test case where the lines have the same shape but different structure --- test/geojson_equality_test.dart | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/geojson_equality_test.dart b/test/geojson_equality_test.dart index de3b2f9..783eb56 100644 --- a/test/geojson_equality_test.dart +++ b/test/geojson_equality_test.dart @@ -72,6 +72,22 @@ void main() { expect(result, true); }); + // ToDo: Another test case where the lines have the same shape but not the + // same structure. Equality is questionable. + test('same line, different orientation', () { + final result = eq.compare( + lineString([ + [100, -30], + [120, -30], + ]), + lineString([ + [120, -30], + [100, -30], + ]), + ); + expect(result, true); + }); + test('detect modification on lat, long, start and end point', () { final original = [ [100, -30],