aboutsummaryrefslogtreecommitdiffstats
path: root/tests/vm/gh_test.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-10-19 05:28:16 +0800
committerobscuren <geffobscura@gmail.com>2014-10-19 05:28:16 +0800
commit3ad1daa70d09e0fc32347029b98166a51e9078c4 (patch)
treee4a7a42f31c7e875adcd0e1d478903e366a033cf /tests/vm/gh_test.go
parent3bc64b6b6edf380aaa145e612988a4aa640e0d23 (diff)
downloadgo-tangerine-3ad1daa70d09e0fc32347029b98166a51e9078c4.tar
go-tangerine-3ad1daa70d09e0fc32347029b98166a51e9078c4.tar.gz
go-tangerine-3ad1daa70d09e0fc32347029b98166a51e9078c4.tar.bz2
go-tangerine-3ad1daa70d09e0fc32347029b98166a51e9078c4.tar.lz
go-tangerine-3ad1daa70d09e0fc32347029b98166a51e9078c4.tar.xz
go-tangerine-3ad1daa70d09e0fc32347029b98166a51e9078c4.tar.zst
go-tangerine-3ad1daa70d09e0fc32347029b98166a51e9078c4.zip
Added tests as subtree
Diffstat (limited to 'tests/vm/gh_test.go')
-rw-r--r--tests/vm/gh_test.go40
1 files changed, 20 insertions, 20 deletions
diff --git a/tests/vm/gh_test.go b/tests/vm/gh_test.go
index bfccef072..1e247c3a8 100644
--- a/tests/vm/gh_test.go
+++ b/tests/vm/gh_test.go
@@ -39,9 +39,9 @@ type VmTest struct {
Pre map[string]Account
}
-func RunVmTest(url string, t *testing.T) {
+func RunVmTest(p string, t *testing.T) {
tests := make(map[string]VmTest)
- helper.CreateHttpTests(t, url, &tests)
+ helper.CreateFileTests(t, p, &tests)
for name, test := range tests {
state := ethstate.New(helper.NewTrie())
@@ -89,46 +89,46 @@ func RunVmTest(url string, t *testing.T) {
// I've created a new function for each tests so it's easier to identify where the problem lies if any of them fail.
func TestVMArithmetic(t *testing.T) {
//helper.Logger.SetLogLevel(5)
- const url = "https://raw.githubusercontent.com/ethereum/tests/develop/vmtests/vmArithmeticTest.json"
- RunVmTest(url, t)
+ const fn = "files/vmtests/vmArithmeticTest.json"
+ RunVmTest(fn, t)
}
func TestVMSystemOperation(t *testing.T) {
- const url = "https://raw.githubusercontent.com/ethereum/tests/develop/vmtests/vmSystemOperationsTest.json"
- RunVmTest(url, t)
+ const fn = "files/vmtests/vmSystemOperationsTest.json"
+ RunVmTest(fn, t)
}
func TestBitwiseLogicOperation(t *testing.T) {
- const url = "https://raw.githubusercontent.com/ethereum/tests/develop/vmtests/vmBitwiseLogicOperationTest.json"
- RunVmTest(url, t)
+ const fn = "files/vmtests/vmBitwiseLogicOperationTest.json"
+ RunVmTest(fn, t)
}
func TestBlockInfo(t *testing.T) {
- const url = "https://raw.githubusercontent.com/ethereum/tests/develop/vmtests/vmBlockInfoTest.json"
- RunVmTest(url, t)
+ const fn = "files/vmtests/vmBlockInfoTest.json"
+ RunVmTest(fn, t)
}
func TestEnvironmentalInfo(t *testing.T) {
- const url = "https://raw.githubusercontent.com/ethereum/tests/develop/vmtests/vmEnvironmentalInfoTest.json"
- RunVmTest(url, t)
+ const fn = "files/vmtests/vmEnvironmentalInfoTest.json"
+ RunVmTest(fn, t)
}
func TestFlowOperation(t *testing.T) {
- const url = "https://raw.githubusercontent.com/ethereum/tests/develop/vmtests/vmIOandFlowOperationsTest.json"
- RunVmTest(url, t)
+ const fn = "files/vmtests/vmIOandFlowOperationsTest.json"
+ RunVmTest(fn, t)
}
func TestPushDupSwap(t *testing.T) {
- const url = "https://raw.githubusercontent.com/ethereum/tests/develop/vmtests/vmPushDupSwapTest.json"
- RunVmTest(url, t)
+ const fn = "files/vmtests/vmPushDupSwapTest.json"
+ RunVmTest(fn, t)
}
func TestVMSha3(t *testing.T) {
- const url = "https://raw.githubusercontent.com/ethereum/tests/develop/vmtests/vmSha3Test.json"
- RunVmTest(url, t)
+ const fn = "files/vmtests/vmSha3Test.json"
+ RunVmTest(fn, t)
}
func TestVm(t *testing.T) {
- const url = "https://raw.githubusercontent.com/ethereum/tests/develop/vmtests/vmtests.json"
- RunVmTest(url, t)
+ const fn = "files/vmtests/vmtests.json"
+ RunVmTest(fn, t)
}