obscuren 10 years ago
parent 3ad1daa70d
commit 33ca8d7b8f
  1. 0
      tests/files/README.md
  2. 0
      tests/files/TODO
  3. 0
      tests/files/blockgenesistest.json
  4. 0
      tests/files/genesishashestest.json
  5. 0
      tests/files/hexencodetest.json
  6. 0
      tests/files/keyaddrtest.json
  7. 0
      tests/files/namecoin.json
  8. 0
      tests/files/rlptest.json
  9. 0
      tests/files/trietest.json
  10. 0
      tests/files/trietestnextprev.json
  11. 0
      tests/files/txtest.json
  12. 0
      tests/files/vmtests/random.json
  13. 0
      tests/files/vmtests/vmArithmeticTest.json
  14. 0
      tests/files/vmtests/vmBitwiseLogicOperationTest.json
  15. 0
      tests/files/vmtests/vmBlockInfoTest.json
  16. 0
      tests/files/vmtests/vmEnvironmentalInfoTest.json
  17. 0
      tests/files/vmtests/vmIOandFlowOperationsTest.json
  18. 0
      tests/files/vmtests/vmPushDupSwapTest.json
  19. 0
      tests/files/vmtests/vmSha3Test.json
  20. 0
      tests/files/vmtests/vmSystemOperationsTest.json
  21. 0
      tests/files/vmtests/vmtests.json
  22. 18
      tests/vm/gh_test.go

@ -89,46 +89,46 @@ func RunVmTest(p 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. // 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) { func TestVMArithmetic(t *testing.T) {
//helper.Logger.SetLogLevel(5) //helper.Logger.SetLogLevel(5)
const fn = "files/vmtests/vmArithmeticTest.json" const fn = "../files/vmtests/vmArithmeticTest.json"
RunVmTest(fn, t) RunVmTest(fn, t)
} }
func TestVMSystemOperation(t *testing.T) { func TestVMSystemOperation(t *testing.T) {
const fn = "files/vmtests/vmSystemOperationsTest.json" const fn = "../files/vmtests/vmSystemOperationsTest.json"
RunVmTest(fn, t) RunVmTest(fn, t)
} }
func TestBitwiseLogicOperation(t *testing.T) { func TestBitwiseLogicOperation(t *testing.T) {
const fn = "files/vmtests/vmBitwiseLogicOperationTest.json" const fn = "../files/vmtests/vmBitwiseLogicOperationTest.json"
RunVmTest(fn, t) RunVmTest(fn, t)
} }
func TestBlockInfo(t *testing.T) { func TestBlockInfo(t *testing.T) {
const fn = "files/vmtests/vmBlockInfoTest.json" const fn = "../files/vmtests/vmBlockInfoTest.json"
RunVmTest(fn, t) RunVmTest(fn, t)
} }
func TestEnvironmentalInfo(t *testing.T) { func TestEnvironmentalInfo(t *testing.T) {
const fn = "files/vmtests/vmEnvironmentalInfoTest.json" const fn = "../files/vmtests/vmEnvironmentalInfoTest.json"
RunVmTest(fn, t) RunVmTest(fn, t)
} }
func TestFlowOperation(t *testing.T) { func TestFlowOperation(t *testing.T) {
const fn = "files/vmtests/vmIOandFlowOperationsTest.json" const fn = "../files/vmtests/vmIOandFlowOperationsTest.json"
RunVmTest(fn, t) RunVmTest(fn, t)
} }
func TestPushDupSwap(t *testing.T) { func TestPushDupSwap(t *testing.T) {
const fn = "files/vmtests/vmPushDupSwapTest.json" const fn = "../files/vmtests/vmPushDupSwapTest.json"
RunVmTest(fn, t) RunVmTest(fn, t)
} }
func TestVMSha3(t *testing.T) { func TestVMSha3(t *testing.T) {
const fn = "files/vmtests/vmSha3Test.json" const fn = "../files/vmtests/vmSha3Test.json"
RunVmTest(fn, t) RunVmTest(fn, t)
} }
func TestVm(t *testing.T) { func TestVm(t *testing.T) {
const fn = "files/vmtests/vmtests.json" const fn = "../files/vmtests/vmtests.json"
RunVmTest(fn, t) RunVmTest(fn, t)
} }

Loading…
Cancel
Save