aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/util_test.go
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2015-03-14 18:39:35 +0800
committerMaran <maran.hidskes@gmail.com>2015-03-14 18:39:35 +0800
commit991993357c902eaab56726bef97e7494674aa5e5 (patch)
tree1277d00e29b3444290664cd07529a3f006cb7b6b /rpc/util_test.go
parentb927c29469864424a97c06ff2f31e2d882b01cd7 (diff)
downloadgo-tangerine-991993357c902eaab56726bef97e7494674aa5e5.tar
go-tangerine-991993357c902eaab56726bef97e7494674aa5e5.tar.gz
go-tangerine-991993357c902eaab56726bef97e7494674aa5e5.tar.bz2
go-tangerine-991993357c902eaab56726bef97e7494674aa5e5.tar.lz
go-tangerine-991993357c902eaab56726bef97e7494674aa5e5.tar.xz
go-tangerine-991993357c902eaab56726bef97e7494674aa5e5.tar.zst
go-tangerine-991993357c902eaab56726bef97e7494674aa5e5.zip
DRY up the use of fromHex and put it in ethutil
Diffstat (limited to 'rpc/util_test.go')
-rw-r--r--rpc/util_test.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/rpc/util_test.go b/rpc/util_test.go
deleted file mode 100644
index b0a4979b5..000000000
--- a/rpc/util_test.go
+++ /dev/null
@@ -1,25 +0,0 @@
-package rpc
-
-import (
- "bytes"
- "testing"
-)
-
-//fromHex
-func TestFromHex(t *testing.T) {
- input := "0x01"
- expected := []byte{1}
- result := fromHex(input)
- if bytes.Compare(expected, result) != 0 {
- t.Errorf("Expected % x got % x", expected, result)
- }
-}
-
-func TestFromHexOddLength(t *testing.T) {
- input := "0x1"
- expected := []byte{1}
- result := fromHex(input)
- if bytes.Compare(expected, result) != 0 {
- t.Errorf("Expected % x got % x", expected, result)
- }
-}