check failed detail

This commit is contained in:
Sun Yimin 2024-08-29 13:13:50 +08:00 committed by GitHub
parent 38f25df5ce
commit 7e768828e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,7 +32,7 @@ func p256OrderSqrTest(t *testing.T, x, p, r *big.Int) {
expected := new(big.Int).Mul(x, x) expected := new(big.Int).Mul(x, x)
expected = expected.Mod(expected, p) expected = expected.Mod(expected, p)
if resInt.Cmp(expected) != 0 { if resInt.Cmp(expected) != 0 {
t.FailNow() t.Fatalf("expected %x, got %x", expected.Bytes(), resInt.Bytes())
} }
} }
@ -99,7 +99,7 @@ func p256OrdMulTest(t *testing.T, x, y, p, r *big.Int) {
expected := new(big.Int).Mul(x, y) expected := new(big.Int).Mul(x, y)
expected = expected.Mod(expected, p) expected = expected.Mod(expected, p)
if resInt.Cmp(expected) != 0 { if resInt.Cmp(expected) != 0 {
t.FailNow() t.Fatalf("expected %x, got %x", expected.Bytes(), resInt.Bytes())
} }
} }