|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r80336 - trunk/libs/polygon/test
From: lucanus.j.simonson_at_[hidden]
Date: 2012-08-31 14:16:40
Author: ljsimons
Date: 2012-08-31 14:16:39 EDT (Fri, 31 Aug 2012)
New Revision: 80336
URL: http://svn.boost.org/trac/boost/changeset/80336
Log:
added test for equivalence bug
Text files modified:
trunk/libs/polygon/test/gtl_boost_unit_test.cpp | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
Modified: trunk/libs/polygon/test/gtl_boost_unit_test.cpp
==============================================================================
--- trunk/libs/polygon/test/gtl_boost_unit_test.cpp (original)
+++ trunk/libs/polygon/test/gtl_boost_unit_test.cpp 2012-08-31 14:16:39 EDT (Fri, 31 Aug 2012)
@@ -6,7 +6,9 @@
http://www.boost.org/LICENSE_1_0.txt).
*/
#include <iostream>
+//#define BOOST_POLYGON_NO_DEPS
#include <boost/polygon/polygon.hpp>
+
namespace gtl = boost::polygon;
using namespace boost::polygon::operators;
#include <time.h>
@@ -3646,6 +3648,23 @@
}
}
+ {
+ polygon_set_data<int> t_eq;
+ t_eq.insert(rectangle_data<int>(0, 0, 5, 10));
+ t_eq.insert(rectangle_data<int>(0, 5, 5, 10));
+ std::cout << t_eq <<std::endl;
+ polygon_set_data<int> t_eq2;
+ t_eq2 += rectangle_data<int>(0, 0, 5, 10);
+ std::cout << area(t_eq) <<std::endl;
+ std::cout << area(t_eq2) <<std::endl;
+ std::cout << t_eq <<std::endl;
+ std::cout << t_eq2 <<std::endl;
+ if(t_eq != t_eq2) {
+ std::cout << "equivalence failed" << std::endl;
+ return 1;
+ }
+ }
+
std::cout << "ALL TESTS COMPLETE\n";
return 0;
}
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