aboutsummaryrefslogtreecommitdiffstats
path: root/xeth/xeth_test.go
diff options
context:
space:
mode:
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")
- }
- }
-}