Skip to content

Commit

Permalink
another test case where the lines have the same shape but different s…
Browse files Browse the repository at this point in the history
…tructure
  • Loading branch information
jsiedentop committed Feb 14, 2024
1 parent 03875c3 commit af5217f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/geojson_equality_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit af5217f

Please sign in to comment.