From 5f307957a1a67fa64fbbafcf8fb382af3d48814c Mon Sep 17 00:00:00 2001 From: andrijamitrovic23 Date: Wed, 22 Mar 2023 13:52:01 +0100 Subject: [PATCH] Empty Tree test case --- nmt_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nmt_test.go b/nmt_test.go index 8bdb3d80..f45c8248 100644 --- a/nmt_test.go +++ b/nmt_test.go @@ -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")),