Skip to content

Commit

Permalink
add: case when value is long, ensure it's not get rlp encoded as node
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen Houwu committed May 18, 2014
1 parent 2b6c136 commit f44a859
Showing 1 changed file with 28 additions and 22 deletions.
50 changes: 28 additions & 22 deletions trietest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
[
{
"inputs": [
["A", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"]
],
"expectation": "d23786fb4a010da3ce639d66d5e904a11dbc02746d1ce25029e53290cabf28ab"
},
{
"inputs": [
["doe", "reindeer"],
Expand All @@ -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"
}
}
]

0 comments on commit f44a859

Please sign in to comment.