mirror of https://github.com/CGAL/cgal
Use CGAL_IA_FORCE_TO_DOUBLE to fix the tessuite
This commit is contained in:
parent
f822c6516c
commit
d3f7d2565b
|
|
@ -74,17 +74,17 @@ void run()
|
||||||
std::cout << "different distances: " << CGAL::squared_distance(query,get_point(pd.first)) << " != " << pd.second << std::endl;
|
std::cout << "different distances: " << CGAL::squared_distance(query,get_point(pd.first)) << " != " << pd.second << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(CGAL::squared_distance(query,get_point(pd.first)) == pd.second);
|
assert(CGAL_IA_FORCE_TO_DOUBLE(CGAL::squared_distance(query,get_point(pd.first))) == pd.second);
|
||||||
it++;
|
it++;
|
||||||
for(; it != oins.end();it++){
|
for(; it != oins.end();it++){
|
||||||
typename K_search::Point_with_transformed_distance qd = *it;
|
typename K_search::Point_with_transformed_distance qd = *it;
|
||||||
assert(pd.second <= qd.second);
|
assert(pd.second <= qd.second);
|
||||||
pd = qd;
|
pd = qd;
|
||||||
points2.push_back(get_point(pd.first));
|
points2.push_back(get_point(pd.first));
|
||||||
if(CGAL::squared_distance(query,get_point(pd.first)) != pd.second){
|
if(CGAL_IA_FORCE_TO_DOUBLE(CGAL::squared_distance(query,get_point(pd.first))) != pd.second){
|
||||||
std::cout << "different distances: " << CGAL::squared_distance(query,get_point(pd.first)) << " != " << pd.second << std::endl;
|
std::cout << "different distances: " << CGAL::squared_distance(query,get_point(pd.first)) << " != " << pd.second << std::endl;
|
||||||
}
|
}
|
||||||
assert(CGAL::squared_distance(query,get_point(pd.first)) == pd.second);
|
assert(CGAL_IA_FORCE_TO_DOUBLE(CGAL::squared_distance(query,get_point(pd.first))) == pd.second);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -63,17 +63,17 @@ struct Splitter_test {
|
||||||
if(CGAL::squared_distance(query,get_point(pd.first)) != pd.second){
|
if(CGAL::squared_distance(query,get_point(pd.first)) != pd.second){
|
||||||
std::cout << CGAL::squared_distance(query,get_point(pd.first)) << " != " << pd.second << std::endl;
|
std::cout << CGAL::squared_distance(query,get_point(pd.first)) << " != " << pd.second << std::endl;
|
||||||
}
|
}
|
||||||
assert(CGAL::squared_distance(query,get_point(pd.first)) == pd.second);
|
assert(CGAL_IA_FORCE_TO_DOUBLE(CGAL::squared_distance(query,get_point(pd.first))) == pd.second);
|
||||||
it++;
|
it++;
|
||||||
for(; it != oins.end();it++){
|
for(; it != oins.end();it++){
|
||||||
Point_with_transformed_distance qd = *it;
|
Point_with_transformed_distance qd = *it;
|
||||||
assert(pd.second <= qd.second);
|
assert(pd.second <= qd.second);
|
||||||
pd = qd;
|
pd = qd;
|
||||||
points2.push_back(get_point(pd.first));
|
points2.push_back(get_point(pd.first));
|
||||||
if(CGAL::squared_distance(query,get_point(pd.first)) != pd.second){
|
if(CGAL_IA_FORCE_TO_DOUBLE(CGAL::squared_distance(query,get_point(pd.first))) != pd.second){
|
||||||
std::cout << CGAL::squared_distance(query,get_point(pd.first)) << " != " << pd.second << std::endl;
|
std::cout << CGAL::squared_distance(query,get_point(pd.first)) << " != " << pd.second << std::endl;
|
||||||
}
|
}
|
||||||
assert(CGAL::squared_distance(query,get_point(pd.first)) == pd.second);
|
assert(CGAL_IA_FORCE_TO_DOUBLE(CGAL::squared_distance(query,get_point(pd.first))) == pd.second);
|
||||||
}
|
}
|
||||||
std::sort(points.begin(),points.end());
|
std::sort(points.begin(),points.end());
|
||||||
std::sort(points2.begin(),points2.end());
|
std::sort(points2.begin(),points2.end());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue