Skip to content

Commit

Permalink
add commitRoot test
Browse files Browse the repository at this point in the history
Signed-off-by: Neo <[email protected]>
  • Loading branch information
neotheprogramist committed Dec 18, 2023
1 parent 08ce91a commit b608aa9
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ public void testCallLibrary() {
assertThat(result).isEqualTo(expected);
}

@Test
public void testCallLibraryCommitRoot() {
Bytes32 input = Bytes32.fromHexString("0xf6e31f7a565a390b48fdd24569ac10d43562d19de37ea951c7f9f250a339d059");
Bytes32 result = Bytes32.wrap(LibIpaMultipoint.commitRoot(input.toArray()));
Bytes32 expected = Bytes32.fromHexString("0x588f93e52b41d8d3abade94bf44a2ccd5d6ef9090a63164fba8d02c909168c53");
assertThat(result).isEqualTo(expected);
}

@Test
public void testCallLibraryWithManyElements() {
Bytes32 element = Bytes32.fromHexString("0x0cfe3041fb6512c87922e2146c8308b372f3bf967f889e69ad116ce7c7ec00");
Expand Down

0 comments on commit b608aa9

Please sign in to comment.