void test_geometry(std::string const& wkt, double expected_length) { Geometry geometry; bg::read_wkt(wkt, geometry); test_length(geometry, expected_length); test_length(boost::variant<Geometry>(geometry), expected_length); }
void test_geometry(std::string const& wkt, double expected_length, Strategy strategy) { Geometry geometry; bg::read_wkt(wkt, geometry); test_length(geometry, expected_length, strategy); #if !defined(BOOST_GEOMETRY_TEST_DEBUG) test_length(boost::variant<Geometry>(geometry), expected_length, strategy); #endif }
int main(void) { test_new(); test_enqueue(); test_dequeue(); test_free(); test_length(); printf("All Tests Pass!!!\n"); return 0; }
int main() { int Error = 0; Error += test_length(); Error += test_normalize(); Error += test_dot(); Error += test_cross(); return Error; }
int main (int argc, char *argv[]) { #ifdef SYMBIAN g_log_set_handler (NULL, G_LOG_FLAG_FATAL| G_LOG_FLAG_RECURSION | G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_WARNING | G_LOG_LEVEL_MESSAGE | G_LOG_LEVEL_INFO | G_LOG_LEVEL_DEBUG, &mrtLogHandler, NULL); g_set_print_handler(mrtPrintHandler); #endif /*SYMBIAN*/ test_utf8 (longline); test_length (); #ifdef SYMBIAN testResultXml("utf8-pointer"); #endif //SYMBIAN return 0; }
void test_buildin() { int failures=0; printf("*** Testing of builtin ***\n"); failures += test_length(); failures += test_copy(); failures += test_find(); failures += test_sort(); if(failures) { printf("\n\n!!! ERROR has occured during testing !!!\n\n"); } else { printf("\n\nOK. Everything is fine.\n\n"); } }
int main(void) { test_construct_with_null(); test_construct_with_empty_string(); test_construct_with_nonempty_string(); test_append_char(); test_at(); test_back(); test_capacity(); test_clear(); test_compare(); test_data(); test_empty(); test_free(); test_front(); test_length(); test_max_size(); test_pop_back(); test_push_back(); test_reserve(); test_resize(); test_size(); return EXIT_SUCCESS; }