mirror of
https://github.com/wownero/wownero.git
synced 2026-11-15 12:53:54 +01:00
crypto: fix unit test for fe_c to use negative
This commit is contained in:
@@ -615,6 +615,7 @@ TEST(Crypto, fe_constants)
|
||||
fe_reduce_vartime(c, c);
|
||||
ASSERT_TRUE(fcmp_pp::sqrt(c, c));
|
||||
fe_reduce_vartime(c, c);
|
||||
fe_neg(c, c); // need the negative value of the sqrt
|
||||
|
||||
ASSERT_TRUE(memcmp(fe_d, D, sizeof(fe)) == 0);
|
||||
ASSERT_TRUE(memcmp(fe_a_sub_d, a_minus_D, sizeof(fe)) == 0);
|
||||
|
||||
Reference in New Issue
Block a user