Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
asanso committed Feb 29, 2024
1 parent 3fa3896 commit 4ee6312
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,20 @@ def case01_add_G1():
"NoBenchmark": False
},
{
"Input": int_to_hex(int(G1[0]),64)+(int_to_hex(int(G1[1]),64))+int_to_hex(0,64)+int_to_hex(0,64),
"Name": "bls_g1add_(g1+0=g1)",
"Expected": int_to_hex(int(G1[0]),64)+(int_to_hex(int(G1[1]),64)) ,
"Gas": BLS12_G1ADD_GAS,
"NoBenchmark": False
},
{
"Input": int_to_hex(int(P1[0]),64)+(int_to_hex(int(P1[1]),64))+int_to_hex(0,64)+int_to_hex(0,64),
"Name": "bls_g1add_(p1+0=p1)",
"Expected": int_to_hex(int(P1[0]),64)+(int_to_hex(int(P1[1]),64)) ,
"Gas": BLS12_G1ADD_GAS,
"NoBenchmark": False
},
{
"Input": int_to_hex(int(G1[0]),64)+(int_to_hex(int(G1[1]),64))+int_to_hex(int(neg(G1)[0]),64)+(int_to_hex(int(neg(G1)[1]),64)),
"Name": "bls_g1add_(g1-g1=0)",
"Expected": int_to_hex(0,64)+int_to_hex(0,64),
Expand Down

0 comments on commit 4ee6312

Please sign in to comment.