Skip to content

Commit f44a859

Browse files
author
Chen Houwu
committed
add: case when value is long, ensure it's not get rlp encoded as node
1 parent 2b6c136 commit f44a859

File tree

1 file changed

+28
-22
lines changed

1 file changed

+28
-22
lines changed

trietest.json

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
[
2+
{
3+
"inputs": [
4+
["A", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"]
5+
],
6+
"expectation": "d23786fb4a010da3ce639d66d5e904a11dbc02746d1ce25029e53290cabf28ab"
7+
},
28
{
39
"inputs": [
410
["doe", "reindeer"],
@@ -9,47 +15,47 @@
915
},
1016
{
1117
"inputs":[
12-
["do", "verb"],
13-
["horse", "stallion"],
14-
["doge", "coin"],
18+
["do", "verb"],
19+
["horse", "stallion"],
20+
["doge", "coin"],
1521
["dog", "puppy"]
16-
],
22+
],
1723
"expectation": "5991bb8c6514148a29db676a14ac506cd2cd5775ace63c30a4fe457715e9ac84"
1824
},
1925
{
2026
"inputs":[
21-
["do", "verb"],
22-
["ether", "wookiedoo"],
23-
["horse", "stallion"],
24-
["shaman", "horse"],
25-
["doge", "coin"],
27+
["do", "verb"],
28+
["ether", "wookiedoo"],
29+
["horse", "stallion"],
30+
["shaman", "horse"],
31+
["doge", "coin"],
2632
["ether", ""],
2733
["dog", "puppy"],
2834
["shaman", ""]
29-
],
35+
],
3036
"expectation": "5991bb8c6514148a29db676a14ac506cd2cd5775ace63c30a4fe457715e9ac84"
3137
},
3238
{
3339
"inputs":[
34-
["foo", "bar"],
35-
["food", "bat"],
40+
["foo", "bar"],
41+
["food", "bat"],
3642
["food", "bass"]
37-
],
43+
],
3844
"expectation": "17beaa1648bafa633cda809c90c04af50fc8aed3cb40d16efbddee6fdf63c4c3"
39-
},
45+
},
4046
{
4147
"inputs":[
42-
["be", "e"],
43-
["dog", "puppy"],
48+
["be", "e"],
49+
["dog", "puppy"],
4450
["bed", "d"]
45-
],
51+
],
4652
"expectation": "3f67c7a47520f79faa29255d2d3c084a7a6df0453116ed7232ff10277a8be68b"
47-
},
53+
},
4854
{
4955
"inputs":[
50-
["test", "test"],
51-
["te", "testy"],
52-
],
56+
["test", "test"],
57+
["te", "testy"],
58+
],
5359
"expectation": "8452568af70d8d140f58d941338542f645fcca50094b20f3c3d8c3df49337928"
54-
}
60+
}
5561
]

0 commit comments

Comments
 (0)