Skip to content

Commit 4f128c4

Browse files
committed
[test] Add comment in equals test.
1 parent 1243579 commit 4f128c4

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

test/algorithms/equals/equals.cpp

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
44
// Copyright (c) 2017 Adam Wulkiewicz, Lodz, Poland.
55

6-
// This file was modified by Oracle on 2013, 2014.
7-
// Modifications copyright (c) 2013-2014 Oracle and/or its affiliates.
6+
// This file was modified by Oracle on 2013-2020.
7+
// Modifications copyright (c) 2013-2020 Oracle and/or its affiliates.
88

99
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
1010

@@ -209,8 +209,15 @@ void test_all()
209209
// Unequal (but same area)
210210
test_geometry<ring, ring>("poly_uneq", case_p1, "POLYGON((1 1,1 3,3 3,1 1))", false);
211211

212+
// Note that POLYGON((0 0,0 4,4 4,0 0),(1 1,2 1,2 2,1 2,1 1))
213+
// below is invalid. equals() returns different result than
214+
// relate() with equals mask in this case because for areal
215+
// geometries different algorithms is used, i.e. collect_vectors.
216+
212217
// One having hole
213-
test_geometry<polygon, polygon>("poly_hole", "POLYGON((0 0,0 4,4 4,0 0))", "POLYGON((0 0,0 4,4 4,0 0),(1 1,2 1,2 2,1 2,1 1))", false);
218+
test_geometry<polygon, polygon>("poly_hole",
219+
"POLYGON((0 0,0 4,4 4,0 0))",
220+
"POLYGON((0 0,0 4,4 4,0 0),(1 1,2 1,2 2,1 2,1 1))", false);
214221

215222
// Both having holes
216223
test_geometry<polygon, polygon>("poly_holes",

0 commit comments

Comments
 (0)