Skip to content

Commit 23f6a31

Browse files
committed
add test case
1 parent 73402f2 commit 23f6a31

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/test/java/org/tron/core/tire/TrieTest.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public void test() {
5353
trie.delete(RLP.encodeInt(3));
5454
byte[] rootHash = trie.getRootHash();
5555
TrieImpl trieCopy = new TrieImpl(trie.getCache(), rootHash);
56+
Assert.assertNull(trie.prove(RLP.encodeInt(111)));
5657
Map<byte[], Node> map = trieCopy.prove(new byte[]{1, 1});
5758
boolean result = trie
5859
.verifyProof(trieCopy.getRootHash(), new byte[]{1, 1}, (LinkedHashMap<byte[], Node>) map);

0 commit comments

Comments
 (0)