Skip to content

Commit 6ad14c1

Browse files
committed
Added VM test suite.
Added TODO. Renamed old files.
1 parent f91ad7b commit 6ad14c1

File tree

5 files changed

+77
-0
lines changed

5 files changed

+77
-0
lines changed

TODO

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
- Move over to standard & clear JSON format:
2+
3+
All files should be of the form:
4+
5+
{
6+
"test1name":
7+
{
8+
"test1property1": ...,
9+
"test1property2": ...,
10+
...
11+
},
12+
"test2name":
13+
{
14+
"test2property1": ...,
15+
"test2property2": ...,
16+
...
17+
}
18+
}
19+
20+
Arrays are allowed, but don't use them for sets of properties - only use them for data that is clearly a continuous contiguous sequence of values.
21+
File renamed without changes.
File renamed without changes.
File renamed without changes.

vmtests.json

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"suicide": {
3+
"env" : {
4+
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6",
5+
"previousNonce" : "9c9c6567b5ec0c5f3f25df79be42707090f1e62e9db84cbb556ae2a2f6ccccae",
6+
"currentDifficulty" : "256",
7+
"currentTimestamp" : 1,
8+
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
9+
"feeMultiplier" : 1
10+
},
11+
"pre" : {
12+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
13+
"balance" : 1000000000000000000,
14+
"nonce" : 0,
15+
"code" : "(suicide (txsender))"
16+
}
17+
},
18+
"exec" : [
19+
{
20+
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
21+
"sender" : "cd1722f3947def4cf144679da39c4c32bdc35681",
22+
"value" : 1000000000000000000,
23+
"data" : [
24+
]
25+
}
26+
]
27+
},
28+
29+
"mktx": {
30+
"env" : {
31+
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6",
32+
"previousNonce" : "9c9c6567b5ec0c5f3f25df79be42707090f1e62e9db84cbb556ae2a2f6ccccae",
33+
"currentDifficulty" : "256",
34+
"currentTimestamp" : 1,
35+
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
36+
"feeMultiplier" : 1
37+
},
38+
"pre" : {
39+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
40+
"balance" : 1000000000000000000,
41+
"nonce" : 0,
42+
"code" : "(mktx (txsender) (txvalue) 0)"
43+
}
44+
},
45+
"exec" : [
46+
{
47+
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
48+
"sender" : "cd1722f3947def4cf144679da39c4c32bdc35681",
49+
"value" : 1000000000000000000,
50+
"data" : [
51+
]
52+
}
53+
]
54+
}
55+
56+
}

0 commit comments

Comments
 (0)