Skip to content

Commit

Permalink
Added test for GT division operator
Browse files Browse the repository at this point in the history
  • Loading branch information
lokingdav committed Nov 10, 2023
1 parent d72fa47 commit 28ec4cf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1525,6 +1525,11 @@ TEST_CASE("GTElement")
auto agg_sig_pair = G1Element::Generator().Pair(aggsig);

REQUIRE(pair == agg_sig_pair);

// test division operator
GTElement gt1 = G1Element::Generator().Pair(G2Element::Generator());
GTElement gt2 = G1Element::Generator().Pair(G2Element::Generator());
REQUIRE(gt1 / gt2 == gt2 / gt1 );
}
}

Expand Down

0 comments on commit 28ec4cf

Please sign in to comment.