aboutsummaryrefslogtreecommitdiffstats
path: root/xeth/xeth_test.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2016-01-26 21:01:00 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2016-01-26 21:01:00 +0800
commit63e76482ac0021afc80b504046c058b8d96891b2 (patch)
tree980e063693dae7fa6105646821ee6755b176b6e2 /xeth/xeth_test.go
parentf2ab351e8d3b0a4e569ce56f6a4f17725ca5ba65 (diff)
parent19b2640e89465c1c57f1bbea0274d52d97151f60 (diff)
downloadgo-tangerine-63e76482ac0021afc80b504046c058b8d96891b2.tar
go-tangerine-63e76482ac0021afc80b504046c058b8d96891b2.tar.gz
go-tangerine-63e76482ac0021afc80b504046c058b8d96891b2.tar.bz2
go-tangerine-63e76482ac0021afc80b504046c058b8d96891b2.tar.lz
go-tangerine-63e76482ac0021afc80b504046c058b8d96891b2.tar.xz
go-tangerine-63e76482ac0021afc80b504046c058b8d96891b2.tar.zst
go-tangerine-63e76482ac0021afc80b504046c058b8d96891b2.zip
Merge pull request #2140 from obscuren/rpc2-console
Rpc2 console
Diffstat (limited to 'xeth/xeth_test.go')
-rw-r--r--xeth/xeth_test.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/xeth/xeth_test.go b/xeth/xeth_test.go
deleted file mode 100644
index e649d20ef..000000000
--- a/xeth/xeth_test.go
+++ /dev/null
@@ -1,26 +0,0 @@
-package xeth
-
-import "testing"
-
-func TestIsAddress(t *testing.T) {
- for _, invalid := range []string{
- "0x00",
- "0xNN",
- "0x00000000000000000000000000000000000000NN",
- "0xAAar000000000000000000000000000000000000",
- } {
- if isAddress(invalid) {
- t.Error("Expected", invalid, "to be invalid")
- }
- }
-
- for _, valid := range []string{
- "0x0000000000000000000000000000000000000000",
- "0xAABBbbCCccff9900000000000000000000000000",
- "AABBbbCCccff9900000000000000000000000000",
- } {
- if !isAddress(valid) {
- t.Error("Expected", valid, "to be valid")
- }
- }
-}