We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36a8385 commit d7ba56dCopy full SHA for d7ba56d
test/test_fp.c
@@ -633,13 +633,15 @@ static int doubling_halving_trisecting(void) {
633
} TEST_END;
634
#endif
635
636
- TEST_CASE("trisecting is consistent") {
637
- fp_rand(a);
638
- fp_dbl(b, a);
639
- fp_add(b, b, a);
640
- fp_trs(c, b);
641
- TEST_ASSERT(fp_cmp(a, c) == RLC_EQ, end);
642
- } TEST_END;
+ if (fp_prime_get_mod18() % 3 == 1) {
+ TEST_CASE("trisecting is consistent") {
+ fp_rand(a);
+ fp_dbl(b, a);
+ fp_add(b, b, a);
+ fp_trs(c, b);
+ TEST_ASSERT(fp_cmp(a, c) == RLC_EQ, end);
643
+ } TEST_END;
644
+ }
645
}
646
RLC_CATCH_ANY {
647
util_print("FATAL ERROR!\n");
0 commit comments