Skip to content

Commit

Permalink
Empty Tree test case
Browse files Browse the repository at this point in the history
  • Loading branch information
andrijamitrovic23 committed Mar 24, 2023
1 parent eb012d0 commit 5f30795
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nmt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,13 @@ func TestNamespacedMerkleTree_ProveNamespace_Ranges_And_Verify(t *testing.T) {
wantProofEnd int
wantFound bool
}{
{
"empty tree", 1,
generateLeafData(1, 0, 0, []byte("_data")),
[]byte{0},
0, 0,
false,
},
{
"found", 1,
generateLeafData(1, 0, 1, []byte("_data")),
Expand Down

0 comments on commit 5f30795

Please sign in to comment.