Skip to content

Commit c818d13

Browse files
committed
Removed arrays from Trie tests JSON as per conformance guide and changed
vocabulary to match other tests. VM test updates.
1 parent 9345bc1 commit c818d13

File tree

2 files changed

+45
-49
lines changed

2 files changed

+45
-49
lines changed

trietest.json

+45-45
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,61 @@
11
{
22
"singleItem": {
3-
"inputs": [
4-
["A", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"]
5-
],
6-
"expectation": "d23786fb4a010da3ce639d66d5e904a11dbc02746d1ce25029e53290cabf28ab"
3+
"in": {
4+
"A": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
5+
},
6+
"root": "d23786fb4a010da3ce639d66d5e904a11dbc02746d1ce25029e53290cabf28ab"
77
},
88
"dogs": {
9-
"inputs": [
10-
["doe", "reindeer"],
11-
["dog", "puppy"],
12-
["dogglesworth", "cat"]
13-
],
14-
"expectation": "8aad789dff2f538bca5d8ea56e8abe10f4c7ba3a5dea95fea4cd6e7c3a1168d3"
9+
"in": {
10+
"doe": "reindeer",
11+
"dog": "puppy",
12+
"dogglesworth": "cat"
13+
},
14+
"root": "8aad789dff2f538bca5d8ea56e8abe10f4c7ba3a5dea95fea4cd6e7c3a1168d3"
1515
},
1616
"puppy": {
17-
"inputs":[
18-
["do", "verb"],
19-
["horse", "stallion"],
20-
["doge", "coin"],
21-
["dog", "puppy"]
22-
],
23-
"expectation": "5991bb8c6514148a29db676a14ac506cd2cd5775ace63c30a4fe457715e9ac84"
17+
"in": {
18+
"do": "verb",
19+
"horse": "stallion",
20+
"doge": "coin",
21+
"dog": "puppy"
22+
},
23+
"root": "5991bb8c6514148a29db676a14ac506cd2cd5775ace63c30a4fe457715e9ac84"
2424
},
2525
"emptyValues": {
26-
"inputs":[
27-
["do", "verb"],
28-
["ether", "wookiedoo"],
29-
["horse", "stallion"],
30-
["shaman", "horse"],
31-
["doge", "coin"],
32-
["ether", ""],
33-
["dog", "puppy"],
34-
["shaman", ""]
35-
],
36-
"expectation": "5991bb8c6514148a29db676a14ac506cd2cd5775ace63c30a4fe457715e9ac84"
26+
"in": {
27+
"do": "verb",
28+
"ether": "wookiedoo",
29+
"horse": "stallion",
30+
"shaman": "horse",
31+
"doge": "coin",
32+
"ether": "",
33+
"dog": "puppy",
34+
"shaman": ""
35+
},
36+
"root": "4505cb6d817068bcd68fb225ab4d5ab70860461d3b35738bf6bcf7b44d702d0d"
3737
},
3838
"foo": {
39-
"inputs":[
40-
["foo", "bar"],
41-
["food", "bat"],
42-
["food", "bass"]
43-
],
44-
"expectation": "17beaa1648bafa633cda809c90c04af50fc8aed3cb40d16efbddee6fdf63c4c3"
39+
"in": {
40+
"foo": "bar",
41+
"food": "bat",
42+
"food": "bass"
43+
},
44+
"root": "17beaa1648bafa633cda809c90c04af50fc8aed3cb40d16efbddee6fdf63c4c3"
4545
},
4646
"smallValues": {
47-
"inputs":[
48-
["be", "e"],
49-
["dog", "puppy"],
50-
["bed", "d"]
51-
],
52-
"expectation": "3f67c7a47520f79faa29255d2d3c084a7a6df0453116ed7232ff10277a8be68b"
47+
"in": {
48+
"be": "e",
49+
"dog": "puppy",
50+
"bed": "d"
51+
},
52+
"root": "3f67c7a47520f79faa29255d2d3c084a7a6df0453116ed7232ff10277a8be68b"
5353
},
5454
"testy": {
55-
"inputs":[
56-
["test", "test"],
57-
["te", "testy"]
58-
],
59-
"expectation": "8452568af70d8d140f58d941338542f645fcca50094b20f3c3d8c3df49337928"
55+
"in": {
56+
"test": "test",
57+
"te": "testy"
58+
},
59+
"root": "8452568af70d8d140f58d941338542f645fcca50094b20f3c3d8c3df49337928"
6060
}
6161
}

vmtests.json

-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
}
1111
],
1212
"env" : {
13-
"code" : "{ (call (- (gas) 200) (caller) (+ 2 2 (* 4 4 4) (/ 2 2) (% 3 2) (- 8 2 2)) 0 0 0 0) }",
1413
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
1514
"currentDifficulty" : "256",
1615
"currentGasLimit" : "1000000",
@@ -125,7 +124,6 @@
125124
}
126125
],
127126
"env" : {
128-
"code" : "(seq (when (and 1 1) (call (- (gas) 200) (caller) 2 0 0 0 0)) (when (and 1 0) (call (- (gas) 200) (caller) 3 0 0 0 0)) (when (and 0 1) (call (- (gas) 200) (caller) 4 0 0 0 0)) (when (and 0 0) (call (- (gas) 200) (caller) 5 0 0 0 0)) (when (or 1 1) (call (- (gas) 200) (caller) 12 0 0 0 0)) (when (or 1 0) (call (- (gas) 200) (caller) 13 0 0 0 0)) (when (or 0 1) (call (- (gas) 200) (caller) 14 0 0 0 0)) (when (or 0 0) (call (- (gas) 200) (caller) 15 0 0 0 0)) )",
129127
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
130128
"currentDifficulty" : "256",
131129
"currentGasLimit" : "1000000",
@@ -603,7 +601,6 @@
603601
}
604602
],
605603
"env" : {
606-
"code" : "(call (- (gas) 200) (caller) 500000000000000000 0 0 0 0)",
607604
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
608605
"currentDifficulty" : "256",
609606
"currentGasLimit" : "1000000",
@@ -704,7 +701,6 @@
704701
"callcreates" : [
705702
],
706703
"env" : {
707-
"code" : "(suicide (caller))",
708704
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
709705
"currentDifficulty" : "256",
710706
"currentGasLimit" : "1000000",

0 commit comments

Comments
 (0)