int main() { int Error = 0; Error += test_operators(); return Error; }
int main() { int Error(0); Error += test_operators(); Error += test_inverse(); return Error; }
int main() { int Error = 0; Error += test_operators(); Error += test_operator_increment(); return Error; }
int main() { test_for_each(); test_out(); test_cast_to_char(); test_cast_from_char(); test_operators(); return EXIT_SUCCESS; }
int main() { bool Result = true; Result = Result && test_operators(); assert(Result); return Result; }
int main() { int Error = 0; Error += cast::test(); Error += test_ctr(); Error += test_operators(); return Error; }
int main() { int Error = 0; Error += test_compiler(); Error += test_model(); Error += test_operators(); return Error; }
int main() { int Error = 0; Error += test_ctr(); Error += test_mat3x3(); Error += test_operators(); Error += test_inverse(); return Error; }
int main() { int Error = 0; Error += test_inverse_dmat4x4(); Error += test_inverse_mat4x4(); Error += test_operators(); Error += test_inverse(); return Error; }
int main() { //Class<vec, float> C; int Error = 0; Error += test_cpp_version(); Error += test_compiler(); Error += test_model(); Error += test_operators(); return Error; }
int main(void) { try { test_type_conversion(); test_round_to(); test_operators(); } catch (const std::exception &ex) { std::cout << ex.what() << std::endl; } }
int main() { int Error = 0; #ifdef GLM_META_PROG_HELPERS assert(glm::mat4x3::rows == glm::mat4x3::row_type::components); assert(glm::mat4x3::cols == glm::mat4x3::col_type::components); #endif Error += test_ctr(); Error += test_operators(); return Error; }
int main() { int Error(0); #ifdef GLM_META_PROG_HELPERS assert(glm::mat2::rows == glm::mat2::row_type::components); assert(glm::mat2::cols == glm::mat2::col_type::components); #endif Error += cast::test(); Error += test_ctr(); Error += test_operators(); Error += test_inverse(); return Error; }
int main() { test_hvec4(); //__m128 DataA = swizzle<X, Y, Z, W>(glm::vec4(1.0f, 2.0f, 3.0f, 4.0f)); //__m128 DataB = swizzle<W, Z, Y, X>(glm::vec4(1.0f, 2.0f, 3.0f, 4.0f)); bool Result = true; Result = Result && test_operators(); Result = Result && test_hvec4(); assert(Result); return Result; return 0; }
int main() { int Error = 0; repro Repro; Error += cast::test(); Error += test_ctr(); Error += test_inverse_dmat4x4(); Error += test_inverse_mat4x4(); Error += test_operators(); Error += test_inverse(); Error += test_size(); Error += perf_mul(); return Error; }
int main() { int Error = 0; repro Repro; #ifdef GLM_META_PROG_HELPERS assert(glm::mat4::rows == glm::mat4::row_type::components); assert(glm::mat4::cols == glm::mat4::col_type::components); #endif Error += cast::test(); Error += test_ctr(); Error += test_inverse_dmat4x4(); Error += test_inverse_mat4x4(); Error += test_operators(); Error += test_inverse(); Error += perf_mul(); return Error; }
int main (int argc, char ** argv) { printf ("KEY TESTS\n"); printf ("===============\n\n"); init (argc, argv); test_ctor (); create_global_keys (); test_props (); test_basic (); test_operators (); test_name_manipulation (); test_value_operations (); test_meta_data (); test_validating (); destroy_global_keys (); printf ("\n%s RESULTS: %d test(s) done. %d error(s).\n", argv[0], nbTest, nbError); return nbError; }
int Test::all() { clock_t begin = clock(); exeTime = 0; test_general(); test_types(); test_booleans(); test_numbers(); test_strings(); test_arrays(); test_intervals(); test_map(); test_set(); test_objects(); test_functions(); test_classes(); test_loops(); test_operators(); test_references(); test_exceptions(); test_operations(); test_system(); test_json(); test_files(); test_doc(); test_utils(); double elapsed_secs = double(clock() - begin) / CLOCKS_PER_SEC; int errors = (total - success_count); int leaks = (obj_created - obj_deleted); int mpz_leaks = (mpz_obj_created - mpz_obj_deleted); std::ostringstream line1, line2, line3, line4; line1 << "Total : " << total << ", success : " << success_count << ", errors : " << errors; line2 << "Total time : " << elapsed_secs * 1000 << " ms"; line3 << "Objects destroyed : " << obj_deleted << " / " << obj_created << " (" << leaks << " leaked)"; line4 << "MPZ objects destroyed : " << mpz_obj_deleted << " / " << mpz_obj_created << " (" << mpz_leaks << " leaked)"; unsigned w = std::max(line1.str().size(), std::max(line2.str().size(), std::max(line3.str().size(), line4.str().size()))); auto pad = [](std::string s, int l) { l -= s.size(); while (l-- > 0) s += " "; return s; }; std::cout << "┌"; for (unsigned i = 0; i < w + 2; ++i) std::cout << "─"; std::cout << "┐" << std::endl; std::cout << "│ " << pad(line1.str(), w) << " │" << std::endl; std::cout << "│ " << pad(line2.str(), w) << " │" << std::endl; std::cout << "│ " << pad(line3.str(), w) << " │" << std::endl; std::cout << "│ " << pad(line4.str(), w) << " │" << std::endl; std::cout << "├"; for (unsigned i = 0; i < w + 2; ++i) std::cout << "─"; std::cout << "┤"; std::cout << std::endl; int result = abs(errors) + abs(leaks) + abs(mpz_leaks); if (result == 0) { std::cout << "│ " << pad("GOOD! ✔", w + 2) << " │" << std::endl; } else { std::cout << "│ " << pad("BAD! : " + std::to_string(result) + " error(s) ✘", w + 2) << " │" << std::endl; } std::cout << "└"; for (unsigned i = 0; i < w + 2; ++i) std::cout << "─"; std::cout << "┘" << std::endl; for (const auto& error : failed_tests) { std::cout << " " << error << std::endl; } if (failed_tests.size()) { std::cout << std::endl; } return result; }