[test][relops] Add spherical test cases.

This commit is contained in:
Adam Wulkiewicz
2016-06-03 03:11:37 +02:00
parent 203e980c93
commit 28e716e9e1
9 changed files with 24 additions and 6 deletions

View File

@@ -43,9 +43,16 @@ static std::string case_3[2] = {
"POLYGON((1 1,1 4,4 4,4 1,1 1))" };
static std::string case_3_sph[2] = {
"POLYGON((1 2,2 4.0012148518458881,4 3,3.0001521347633209 1.0003046174216719,1 2))",
"POLYGON((1 1,1 4,4 4,4 1,1 1))" };
"POLYGON((1 2,2 4.0012148518458881,4 3,3.0001521347633209 1.0003046174216719,1 2))",
"POLYGON((1 1,1 4,4 4,4 1,1 1))" };
static std::string case_3_2[2] = {
"POLYGON((1 1,1 2,1 4,2 4,4 4,4 3,4 1,3 1,1 1))",
"POLYGON((1 1,1 4,4 4,4 1,1 1))" };
static std::string case_3_2_sph[2] = {
"POLYGON((1 1,1 2,1 4,2 4.0012148518458881,4 4, 4 3,4 1,3.0001521347633209 1.0003046174216719,1 1))",
"POLYGON((1 1,1 4,4 4,4 1,1 1))" };
static std::string case_4[2] = {
"POLYGON((0 2,2 5,5 3,3 0,0 2))",

View File

@@ -32,6 +32,8 @@ void test_polygon_polygon()
false);
test_geometry<poly, poly>(case_3_sph[0], case_3_sph[1],
true);
test_geometry<poly, poly>(case_3_2_sph[0], case_3_2_sph[1],
true);
test_geometry<poly, poly>(case_4[0], case_4[1],
false);
test_geometry<poly, poly>(case_5[0], case_5[1],

View File

@@ -34,6 +34,8 @@ void test_polygon_polygon()
false);
test_geometry<poly, poly>(case_3_sph[0], case_3_sph[1],
false);
test_geometry<poly, poly>(case_3_2_sph[0], case_3_2_sph[1],
false);
test_geometry<poly, poly>(case_4[0], case_4[1],
false);
test_geometry<poly, poly>(case_5[0], case_5[1],

View File

@@ -34,11 +34,8 @@ void test_polygon_polygon()
false);
test_geometry<poly, poly>(case_3_sph[0], case_3_sph[1],
false);
#ifdef BOOST_GEOMETRY_ENABLE_FAILING
test_geometry<poly, poly>("POLYGON((1 1,1 2,1 4,2 4.0012148518458881,4 4, 4 3,4 1,3.0001521347633209 1.0003046174216719,1 1))",
"POLYGON((1 1,1 4,4 4,4 1,1 1))",
test_geometry<poly, poly>(case_3_2_sph[0], case_3_2_sph[1],
true);
#endif
test_geometry<poly, poly>(case_4[0], case_4[1],
false);
test_geometry<poly, poly>(case_5[0], case_5[1],

View File

@@ -32,6 +32,8 @@ void test_polygon_polygon()
true);
test_geometry<poly, poly>(case_3_sph[0], case_3_sph[1],
true);
test_geometry<poly, poly>(case_3_2_sph[0], case_3_2_sph[1],
true);
test_geometry<poly, poly>(case_4[0], case_4[1],
true);
test_geometry<poly, poly>(case_5[0], case_5[1],

View File

@@ -32,6 +32,8 @@ void test_polygon_polygon()
true);
test_geometry<poly, poly>(case_3_sph[0], case_3_sph[1],
false);
test_geometry<poly, poly>(case_3_2_sph[0], case_3_2_sph[1],
false);
test_geometry<poly, poly>(case_4[0], case_4[1],
true);
test_geometry<poly, poly>(case_5[0], case_5[1],

View File

@@ -33,6 +33,8 @@ void test_polygon_polygon()
"212101212");
test_geometry<poly, poly>(case_3_sph[0], case_3_sph[1],
"2FF10F212");
test_geometry<poly, poly>(case_3_2_sph[0], case_3_2_sph[1],
"2FFF1FFF2");
test_geometry<poly, poly>(case_4[0], case_4[1],
"212101212");
test_geometry<poly, poly>(case_5[0], case_5[1],

View File

@@ -32,6 +32,8 @@ void test_polygon_polygon()
false);
test_geometry<poly, poly>(case_3_sph[0], case_3_sph[1],
false);
test_geometry<poly, poly>(case_3_2_sph[0], case_3_2_sph[1],
false);
test_geometry<poly, poly>(case_4[0], case_4[1],
false);
test_geometry<poly, poly>(case_5[0], case_5[1],

View File

@@ -32,6 +32,8 @@ void test_polygon_polygon()
false);
test_geometry<poly, poly>(case_3_sph[0], case_3_sph[1],
true);
test_geometry<poly, poly>(case_3_2_sph[0], case_3_2_sph[1],
true);
test_geometry<poly, poly>(case_4[0], case_4[1],
false);
test_geometry<poly, poly>(case_5[0], case_5[1],