From 5ab5e0cac99e982d27f42300364c3d085ed9172d Mon Sep 17 00:00:00 2001 From: Jordi Baylina Date: Wed, 2 Nov 2016 00:44:31 +0100 Subject: Trie: Insert a node in a middle of a leaf test --- TrieTests/trietest.json | 11 +++++++++++ 1 file changed, 11 insertions(+) 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" } } -- cgit v1.2.3