aboutsummaryrefslogtreecommitdiffstats
path: root/TrieTests
diff options
context:
space:
mode:
authorJordi Baylina <jordi@baylina.cat>2016-11-02 07:44:31 +0800
committerJordi Baylina <jordi@baylina.cat>2016-11-02 07:44:31 +0800
commit5ab5e0cac99e982d27f42300364c3d085ed9172d (patch)
treebc9b1cef6ae81e150c018c74639acc9e38080973 /TrieTests
parent862b4e3d4a9a7141af1b4aaf7dfe228a6a294614 (diff)
downloadtangerine-tests-5ab5e0cac99e982d27f42300364c3d085ed9172d.tar
tangerine-tests-5ab5e0cac99e982d27f42300364c3d085ed9172d.tar.gz
tangerine-tests-5ab5e0cac99e982d27f42300364c3d085ed9172d.tar.bz2
tangerine-tests-5ab5e0cac99e982d27f42300364c3d085ed9172d.tar.lz
tangerine-tests-5ab5e0cac99e982d27f42300364c3d085ed9172d.tar.xz
tangerine-tests-5ab5e0cac99e982d27f42300364c3d085ed9172d.tar.zst
tangerine-tests-5ab5e0cac99e982d27f42300364c3d085ed9172d.zip
Trie: Insert a node in a middle of a leaf test
Diffstat (limited to 'TrieTests')
-rw-r--r--TrieTests/trietest.json11
1 files changed, 11 insertions, 0 deletions
diff --git a/TrieTests/trietest.json b/TrieTests/trietest.json
index d871a8a81..aee4338c4 100644
--- a/TrieTests/trietest.json
+++ b/TrieTests/trietest.json
@@ -82,5 +82,16 @@
["0x6f6f6f6820736f2067726561742c207265616c6c6c793f000000000000000000", "0x697c7b8c961b56f675d570498424ac8de1a918f6"]
],
"root": "0x9f6221ebb8efe7cff60a716ecb886e67dd042014be444669f0159d8e68b42100"
+ },
+ "insert-middle-leaf": {
+ "in": [
+ [ "key1aa", "0123456789012345678901234567890123456789xxx"],
+ [ "key1", "0123456789012345678901234567890123456789Very_Long"],
+ [ "key2bb", "aval3"],
+ [ "key2", "short"],
+ [ "key3cc", "aval3"],
+ [ "key3","1234567890123456789012345678901"]
+ ],
+ "root": "0xcb65032e2f76c48b82b5c24b3db8f670ce73982869d38cd39a624f23d62a9e89"
}
}