mirror of https://github.com/CGAL/cgal
do not run the tests for long long and long double on platforms which have buggy IO for these types
This commit is contained in:
parent
53a5d8d388
commit
275baee86b
|
|
@ -74,10 +74,14 @@ int main() {
|
|||
test_io<long int>(0);
|
||||
test_io<long int>(-12);
|
||||
|
||||
#ifdef CGAL_CFG_LONG_LONG_IO_BUG
|
||||
std::cout << "test_io: long long int is not performed due to compiler bug"<< std::endl;
|
||||
#else
|
||||
std::cout << "test_io: long long int "<< std::endl;
|
||||
test_io<long long int>(12);
|
||||
test_io<long long int>(0);
|
||||
test_io<long long int>(-12);
|
||||
#endif
|
||||
|
||||
std::cout << "test_io: float "<< std::endl;
|
||||
test_io<float>(12);
|
||||
|
|
@ -89,10 +93,14 @@ int main() {
|
|||
test_io<double>(0);
|
||||
test_io<double>(-12);
|
||||
|
||||
#ifdef CGAL_CFG_NO_LONG_DOUBLE_IO
|
||||
std::cout << "test_io: long double is not performed due to compiler bug"<< std::endl;
|
||||
#else
|
||||
std::cout << "test_io: long double "<< std::endl;
|
||||
test_io<long double>(12);
|
||||
test_io<long double>(0);
|
||||
test_io<long double>(-12);
|
||||
#endif
|
||||
|
||||
//TODO: add more
|
||||
std::cout << "ok" <<std::endl;
|
||||
|
|
|
|||
Loading…
Reference in New Issue