[difference][test] increase tolerance to let it pass on clang (the subsequent

cases also have tolerance of 1e-10).
Also increase printed precision to be able to investigate the problem
This commit is contained in:
Barend Gehrels 2015-10-14 14:17:47 +02:00
parent d25b47f627
commit c5f31b17a4
2 changed files with 3 additions and 2 deletions

View File

@ -553,7 +553,7 @@ BOOST_AUTO_TEST_CASE( test_difference_linestring_linestring )
from_wkt<L>("LINESTRING(0 -.2, 8 1)"),
from_wkt<ML>("MULTILINESTRING((4 .4,2 8))"),
"lldf31x",
4.0 * std::numeric_limits<double>::epsilon()
1e-10
);
tester::apply
@ -561,7 +561,7 @@ BOOST_AUTO_TEST_CASE( test_difference_linestring_linestring )
from_wkt<L>("LINESTRING(0 -.2, 8 1)"),
from_wkt<ML>("MULTILINESTRING((2 8,4 .4))"),
"lldf31x-r",
4.0 * std::numeric_limits<double>::epsilon()
1e-10
);
tester::apply

View File

@ -64,6 +64,7 @@ private:
<< ", difference L/L: " << bg::wkt(geometry1)
<< " " << bg::wkt(geometry2)
<< " -> Expected: " << bg::wkt(mls_diff)
<< std::setprecision(20)
<< " computed: " << bg::wkt(mls_output) );
set_operation_output("difference", case_id,