25 std::clock_t t0, totalNayuki, totalRicMoo;
27 int total = 0, passed = 0;
28 for (
char version = 1; version <= 40; version++) {
31 for (
char ecc = 0; ecc < 4; ecc++) {
48 for (
char tc = 0; tc < 3; tc++) {
52 data = (
char*)
"HELLO";
55 data = (
char*)
"Hello";
63 totalNayuki += std::clock() - t0;
69 totalRicMoo += std::clock() - t0;
71 uint32_t badModules = check(nayuki, &ricmoo);
73 printf(
"Failed test case: version=%d, ecc=%d, data=\"%s\", faliured=%d\n", version, ecc, data, badModules);
83 printf(
"Tests complete: %d passed (out of %d)\n", passed, total);
84 printf(
"Timing: Nayuki=%lu, RicMoo=%lu\n", totalNayuki, totalRicMoo);