mirror of
https://github.com/status-im/c-kzg-4844.git
synced 2025-01-11 18:54:11 +00:00
Ensure evaluation test success is non-trivial
This commit is contained in:
parent
61a43c95a2
commit
0b5db6413e
@ -83,6 +83,13 @@ class tests {
|
||||
System.Diagnostics.Trace.Assert(result == 0, "Evaluation failed");
|
||||
System.Diagnostics.Trace.Assert(y == HexadecimalStringToByteArray("1c000000000000000d0000000000000000000000000000000000000000000000"),
|
||||
"Evaluation produced incorrect value");
|
||||
|
||||
x[11] = 0x11;
|
||||
result = ckzg.evaluate_polynomial_in_evaluation_form(y, p, x, ts);
|
||||
System.Diagnostics.Trace.Assert(result == 0, "Second evaluation failed");
|
||||
System.Diagnostics.Trace.Assert(y != HexadecimalStringToByteArray("1c000000000000000d0000000000000000000000000000000000000000000000"),
|
||||
"Second evaluation produced incorrect value");
|
||||
|
||||
ckzg.free_trusted_setup(ts);
|
||||
|
||||
Console.WriteLine("Tests passed");
|
||||
|
Loading…
x
Reference in New Issue
Block a user