aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwinsvega <winsvega@mail.ru>2016-12-24 01:38:49 +0800
committerGitHub <noreply@github.com>2016-12-24 01:38:49 +0800
commite489c3cf1f6eda2ce5e7a13667a45010f4ce1e86 (patch)
tree23c0f681a5ab44f1d42c901f79644f5d29a35144
parentb364958d2f4828ac9165ae90eade97d57a52ecba (diff)
parent5ab5e0cac99e982d27f42300364c3d085ed9172d (diff)
downloaddexon-tests-e489c3cf1f6eda2ce5e7a13667a45010f4ce1e86.tar
dexon-tests-e489c3cf1f6eda2ce5e7a13667a45010f4ce1e86.tar.gz
dexon-tests-e489c3cf1f6eda2ce5e7a13667a45010f4ce1e86.tar.bz2
dexon-tests-e489c3cf1f6eda2ce5e7a13667a45010f4ce1e86.tar.lz
dexon-tests-e489c3cf1f6eda2ce5e7a13667a45010f4ce1e86.tar.xz
dexon-tests-e489c3cf1f6eda2ce5e7a13667a45010f4ce1e86.tar.zst
dexon-tests-e489c3cf1f6eda2ce5e7a13667a45010f4ce1e86.zip
Merge pull request #125 from jbaylina/insert-middle-leaf
Trie: Insert a node in a middle of a leaf test
-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"
}
}