|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r76864 - in trunk/libs/geometry/test: algorithms strategies
From: barend.gehrels_at_[hidden]
Date: 2012-02-03 18:42:07
Author: barendgehrels
Date: 2012-02-03 18:42:07 EST (Fri, 03 Feb 2012)
New Revision: 76864
URL: http://svn.boost.org/trac/boost/changeset/76864
Log:
Added testcase for last fix
Text files modified:
trunk/libs/geometry/test/algorithms/disjoint.cpp | 4 ++++
trunk/libs/geometry/test/strategies/segment_intersection_collinear.cpp | 9 +++++++++
2 files changed, 13 insertions(+), 0 deletions(-)
Modified: trunk/libs/geometry/test/algorithms/disjoint.cpp
==============================================================================
--- trunk/libs/geometry/test/algorithms/disjoint.cpp (original)
+++ trunk/libs/geometry/test/algorithms/disjoint.cpp 2012-02-03 18:42:07 EST (Fri, 03 Feb 2012)
@@ -161,6 +161,10 @@
// Parallel, disjoint
test_disjoint<ls, ls>("c-d", "linestring(2 0,6 0)", "linestring(2 1,6 1)", true);
+ // Error still there until 1.48 (reported "error", was reported to disjoint, so that's why it did no harm)
+ test_disjoint<ls, ls>("case_recursive_boxes_1",
+ "linestring(10 7,10 6)", "linestring(10 10,10 9)", true);
+
}
// TODO test_disjoint<segment, ls>("s/ls 1", "linestring(0 0,1 1)", "linestring(1 0,0 1)", false);
Modified: trunk/libs/geometry/test/strategies/segment_intersection_collinear.cpp
==============================================================================
--- trunk/libs/geometry/test/strategies/segment_intersection_collinear.cpp (original)
+++ trunk/libs/geometry/test/strategies/segment_intersection_collinear.cpp 2012-02-03 18:42:07 EST (Fri, 03 Feb 2012)
@@ -238,6 +238,15 @@
6, 0, 2, 0,
'e', true, 0, 0,
2, 0, 6, 0);
+
+ // a1---------->a2
+ // b2<----------b1
+ test_segment_intersection<P>("case_recursive_boxes_1",
+ 10, 7, 10, 6,
+ 10, 10, 10, 9,
+ 'd', false, 0, 0,
+ -1, -1, -1, -1);
+
}
int test_main(int, char* [])
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk