// Simple test program for Geomview_stream. // See the demo directory for more extensive use. // // Sylvain Pion, 2000. #include #ifndef CGAL_USE_GEOMVIEW #include int main() { std::cout << "Geomview untested on Windows." << std::endl; return 0; } #else #include #include #include typedef CGAL::Cartesian K; void test_parse_point() { const char *test_point="( 123 456 789 1 )"; double x, y, z, w; CGAL::Geomview_stream::parse_point(test_point, x, y, z, w); K::Point_3 p(x, y, z, w); assert(p == K::Point_3(123, 456, 789)); } int main() { test_parse_point(); return 0; } #endif