aboutsummaryrefslogtreecommitdiffstats
path: root/test_runner_test.go
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-03-24 17:26:19 +0800
committerMaran <maran.hidskes@gmail.com>2014-03-24 17:26:19 +0800
commit6724d27c0c897f116cac3163230f043e80304f91 (patch)
tree4e3f9c0225881c2b6a12deb5f223ee9b139d517d /test_runner_test.go
parent3002570085c6823da4b8e12015eafa4bd87177fb (diff)
parent642630db15a793cf0a0f7fbd827daee364df5423 (diff)
downloaddexon-6724d27c0c897f116cac3163230f043e80304f91.tar.gz
dexon-6724d27c0c897f116cac3163230f043e80304f91.tar.zst
dexon-6724d27c0c897f116cac3163230f043e80304f91.zip
Merge master into miner branch
Diffstat (limited to 'test_runner_test.go')
-rw-r--r--test_runner_test.go36
1 files changed, 0 insertions, 36 deletions
diff --git a/test_runner_test.go b/test_runner_test.go
deleted file mode 100644
index a5672eb7a..000000000
--- a/test_runner_test.go
+++ /dev/null
@@ -1,36 +0,0 @@
-package main
-
-/*
-import (
- "encoding/hex"
- _ "fmt"
- "github.com/ethereum/ethdb-go"
- "github.com/ethereum/ethutil-go"
- "testing"
-)
-
-var testsource = `
-{
- "inputs":{
- "doe": "reindeer",
- "dog": "puppy",
- "dogglesworth": "cat"
- },
- "expectation":"e378927bfc1bd4f01a2e8d9f59bd18db8a208bb493ac0b00f93ce51d4d2af76c"
-}`
-
-func TestTestRunner(t *testing.T) {
- db, _ := ethdb.NewMemDatabase()
- trie := ethutil.NewTrie(db, "")
-
- runner := NewTestRunner(t)
- runner.RunFromString(testsource, func(source *TestSource) {
- for key, value := range source.Inputs {
- trie.Update(key, value)
- }
- if hex.EncodeToString(trie.Root.([]byte)) != source.Expectation {
- t.Error("trie root did not match")
- }
- })
-}
-*/