diff options
author | Gav Wood <i@gavwood.com> | 2014-02-22 02:33:39 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2014-02-22 02:33:39 +0800 |
commit | 6ad14c1a157e707fd15c87816e8ad872f69790db (patch) | |
tree | 301c570686e8367bfcaae2277919a65df0f520f3 | |
parent | f91ad7b3857ec9157e7df7f315d942afb7594da0 (diff) | |
download | tangerine-tests-6ad14c1a157e707fd15c87816e8ad872f69790db.tar tangerine-tests-6ad14c1a157e707fd15c87816e8ad872f69790db.tar.gz tangerine-tests-6ad14c1a157e707fd15c87816e8ad872f69790db.tar.bz2 tangerine-tests-6ad14c1a157e707fd15c87816e8ad872f69790db.tar.lz tangerine-tests-6ad14c1a157e707fd15c87816e8ad872f69790db.tar.xz tangerine-tests-6ad14c1a157e707fd15c87816e8ad872f69790db.tar.zst tangerine-tests-6ad14c1a157e707fd15c87816e8ad872f69790db.zip |
Added VM test suite.
Added TODO.
Renamed old files.
-rw-r--r-- | TODO | 21 | ||||
-rw-r--r-- | hexencodetest.json (renamed from hexencodetest.txt) | 0 | ||||
-rw-r--r-- | rlptest.json (renamed from rlptest.txt) | 0 | ||||
-rw-r--r-- | trietest.json (renamed from trietest.txt) | 0 | ||||
-rw-r--r-- | vmtests.json | 56 |
5 files changed, 77 insertions, 0 deletions
@@ -0,0 +1,21 @@ +- Move over to standard & clear JSON format: + +All files should be of the form: + +{ + "test1name": + { + "test1property1": ..., + "test1property2": ..., + ... + }, + "test2name": + { + "test2property1": ..., + "test2property2": ..., + ... + } +} + +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. + diff --git a/hexencodetest.txt b/hexencodetest.json index a6d18834c..a6d18834c 100644 --- a/hexencodetest.txt +++ b/hexencodetest.json diff --git a/rlptest.txt b/rlptest.json index b443d65a4..b443d65a4 100644 --- a/rlptest.txt +++ b/rlptest.json diff --git a/trietest.txt b/trietest.json index 4a5c5ded5..4a5c5ded5 100644 --- a/trietest.txt +++ b/trietest.json diff --git a/vmtests.json b/vmtests.json new file mode 100644 index 000000000..07f69a671 --- /dev/null +++ b/vmtests.json @@ -0,0 +1,56 @@ +{ + "suicide": { + "env" : { + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6", + "previousNonce" : "9c9c6567b5ec0c5f3f25df79be42707090f1e62e9db84cbb556ae2a2f6ccccae", + "currentDifficulty" : "256", + "currentTimestamp" : 1, + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "feeMultiplier" : 1 + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : 1000000000000000000, + "nonce" : 0, + "code" : "(suicide (txsender))" + } + }, + "exec" : [ + { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "sender" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : 1000000000000000000, + "data" : [ + ] + } + ] + }, + + "mktx": { + "env" : { + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6", + "previousNonce" : "9c9c6567b5ec0c5f3f25df79be42707090f1e62e9db84cbb556ae2a2f6ccccae", + "currentDifficulty" : "256", + "currentTimestamp" : 1, + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "feeMultiplier" : 1 + }, + "pre" : { + "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { + "balance" : 1000000000000000000, + "nonce" : 0, + "code" : "(mktx (txsender) (txvalue) 0)" + } + }, + "exec" : [ + { + "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6", + "sender" : "cd1722f3947def4cf144679da39c4c32bdc35681", + "value" : 1000000000000000000, + "data" : [ + ] + } + ] + } + +} |