aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-04 23:39:02 +0800
committerobscuren <geffobscura@gmail.com>2015-02-04 23:39:02 +0800
commit3f03197daebace568a61bf69c06c97e30080a749 (patch)
tree285917452362f8f86709feed07b0f620fc39464d /tests
parent4dc283c0fb5d886ce8d3638c3322af7e6f2a3b2e (diff)
downloadgo-tangerine-3f03197daebace568a61bf69c06c97e30080a749.tar.gz
go-tangerine-3f03197daebace568a61bf69c06c97e30080a749.tar.zst
go-tangerine-3f03197daebace568a61bf69c06c97e30080a749.zip
Updated tests
Diffstat (limited to 'tests')
-rw-r--r--tests/files/BlockchainTests/badBlockChain.json (renamed from tests/files/BlockTests/badBlockChain.json)0
-rw-r--r--tests/files/BlockchainTests/basicBlockChain.json (renamed from tests/files/BlockTests/basicBlockChain.json)0
-rw-r--r--tests/files/StateTests/stRefundTest.json40
-rw-r--r--tests/files/VMTests/RandomTests/201502031248CPPJIT.json31
-rw-r--r--tests/files/VMTests/RandomTests/201502032117GO.json59
-rw-r--r--tests/files/index.js4
-rw-r--r--tests/files/package.json2
7 files changed, 133 insertions, 3 deletions
diff --git a/tests/files/BlockTests/badBlockChain.json b/tests/files/BlockchainTests/badBlockChain.json
index ac1ffa806..ac1ffa806 100644
--- a/tests/files/BlockTests/badBlockChain.json
+++ b/tests/files/BlockchainTests/badBlockChain.json
diff --git a/tests/files/BlockTests/basicBlockChain.json b/tests/files/BlockchainTests/basicBlockChain.json
index 3ce1fc277..3ce1fc277 100644
--- a/tests/files/BlockTests/basicBlockChain.json
+++ b/tests/files/BlockchainTests/basicBlockChain.json
diff --git a/tests/files/StateTests/stRefundTest.json b/tests/files/StateTests/stRefundTest.json
index 08ae1fac8..0aa9d6f27 100644
--- a/tests/files/StateTests/stRefundTest.json
+++ b/tests/files/StateTests/stRefundTest.json
@@ -1,4 +1,44 @@
{
+ "RefundOverflow" : {
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "45678256",
+ "currentGasLimit" : "115792089237316195423570985008687907853269984665640564039457584007913129639935",
+ "currentNumber" : "0",
+ "currentTimestamp" : 1,
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "logs" : [
+ ],
+ "out" : "0x",
+ "post" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "400",
+ "code" : "0x",
+ "nonce" : "0",
+ "storage" : {
+ }
+ }
+ },
+ "pre" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "400",
+ "code" : "0x",
+ "nonce" : "0",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : "",
+ "gasLimit" : "5789604461865809771178549250434395392663499233282028201972879200395656482016",
+ "gasPrice" : "20",
+ "nonce" : "0",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "value" : ""
+ }
+ },
"refund500" : {
"env" : {
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
diff --git a/tests/files/VMTests/RandomTests/201502031248CPPJIT.json b/tests/files/VMTests/RandomTests/201502031248CPPJIT.json
new file mode 100644
index 000000000..0202bcb03
--- /dev/null
+++ b/tests/files/VMTests/RandomTests/201502031248CPPJIT.json
@@ -0,0 +1,31 @@
+{
+ "randomVMtest" : {
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "115792089237316195423570985008687907853269984665640564039457584007913129639935",
+ "currentGasLimit" : "1000000",
+ "currentNumber" : "300",
+ "currentTimestamp" : "2",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "exec" : {
+ "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
+ "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
+ "code" : "0x404544420855",
+ "data" : "0x",
+ "gas" : "10000",
+ "gasPrice" : "100000000000000",
+ "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
+ "value" : "1000000000000000000"
+ },
+ "pre" : {
+ "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x404544420855",
+ "nonce" : "0",
+ "storage" : {
+ }
+ }
+ }
+ }
+}
diff --git a/tests/files/VMTests/RandomTests/201502032117GO.json b/tests/files/VMTests/RandomTests/201502032117GO.json
new file mode 100644
index 000000000..e9ac3a5fc
--- /dev/null
+++ b/tests/files/VMTests/RandomTests/201502032117GO.json
@@ -0,0 +1,59 @@
+{
+ "randomVMtest" : {
+ "callcreates" : [
+ {
+ "data" : "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "destination" : "",
+ "gasLimit" : "9872",
+ "value" : "2"
+ },
+ {
+ "data" : "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "destination" : "",
+ "gasLimit" : "9770",
+ "value" : "9870"
+ }
+ ],
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "115792089237316195423570985008687907853269984665640564039457584007913129639935",
+ "currentGasLimit" : "1000000",
+ "currentNumber" : "300",
+ "currentTimestamp" : "2",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "exec" : {
+ "address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
+ "caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
+ "code" : "0x424443444243434383f0155af055",
+ "data" : "0x",
+ "gas" : "10000",
+ "gasPrice" : "100000000000000",
+ "origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
+ "value" : "1000000000000000000"
+ },
+ "gas" : "9470",
+ "logs" : [
+ ],
+ "out" : "0x",
+ "post" : {
+ "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "999999999999990128",
+ "code" : "0x424443444243434383f0155af055",
+ "nonce" : "0",
+ "storage" : {
+ "0x945304eb96065b2a98b57a48a06ae28d285a71b5" : "0x02"
+ }
+ }
+ },
+ "pre" : {
+ "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
+ "balance" : "1000000000000000000",
+ "code" : "0x424443444243434383f0155af055",
+ "nonce" : "0",
+ "storage" : {
+ }
+ }
+ }
+ }
+}
diff --git a/tests/files/index.js b/tests/files/index.js
index aa4cd51e1..47acfdbfb 100644
--- a/tests/files/index.js
+++ b/tests/files/index.js
@@ -1,8 +1,8 @@
var tests = module.exports = {};
Object.defineProperties(tests, {
- blockTests: {
- get: require('require-all').bind(this, __dirname + '/BlockTests')
+ blockchainTests: {
+ get: require('require-all').bind(this, __dirname + '/BlockchainTests')
},
basicTests: {
get: require('require-all').bind(this, __dirname + '/BasicTests/')
diff --git a/tests/files/package.json b/tests/files/package.json
index 318006032..6b1446756 100644
--- a/tests/files/package.json
+++ b/tests/files/package.json
@@ -1,6 +1,6 @@
{
"name": "ethereum-tests",
- "version": "0.0.2",
+ "version": "0.0.3",
"description": "tests for ethereum",
"main": "index.js",
"scripts": {