add: case when value is long, ensure it's not get rlp encoded as node

pull/426/head
Chen Houwu 11 years ago
parent 2b6c136dda
commit f44a859331
  1. 50
      trietest.json

@ -1,4 +1,10 @@
[
{
"inputs": [
["A", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"]
],
"expectation": "d23786fb4a010da3ce639d66d5e904a11dbc02746d1ce25029e53290cabf28ab"
},
{
"inputs": [
["doe", "reindeer"],
@ -9,47 +15,47 @@
},
{
"inputs":[
["do", "verb"],
["horse", "stallion"],
["doge", "coin"],
["do", "verb"],
["horse", "stallion"],
["doge", "coin"],
["dog", "puppy"]
],
],
"expectation": "5991bb8c6514148a29db676a14ac506cd2cd5775ace63c30a4fe457715e9ac84"
},
{
"inputs":[
["do", "verb"],
["ether", "wookiedoo"],
["horse", "stallion"],
["shaman", "horse"],
["doge", "coin"],
["do", "verb"],
["ether", "wookiedoo"],
["horse", "stallion"],
["shaman", "horse"],
["doge", "coin"],
["ether", ""],
["dog", "puppy"],
["shaman", ""]
],
],
"expectation": "5991bb8c6514148a29db676a14ac506cd2cd5775ace63c30a4fe457715e9ac84"
},
{
"inputs":[
["foo", "bar"],
["food", "bat"],
["foo", "bar"],
["food", "bat"],
["food", "bass"]
],
],
"expectation": "17beaa1648bafa633cda809c90c04af50fc8aed3cb40d16efbddee6fdf63c4c3"
},
},
{
"inputs":[
["be", "e"],
["dog", "puppy"],
["be", "e"],
["dog", "puppy"],
["bed", "d"]
],
],
"expectation": "3f67c7a47520f79faa29255d2d3c084a7a6df0453116ed7232ff10277a8be68b"
},
},
{
"inputs":[
["test", "test"],
["te", "testy"],
],
["test", "test"],
["te", "testy"],
],
"expectation": "8452568af70d8d140f58d941338542f645fcca50094b20f3c3d8c3df49337928"
}
}
]

Loading…
Cancel
Save