aboutsummaryrefslogtreecommitdiff
path: root/pub_test.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-10-23 18:47:36 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-10-23 18:47:36 +0200
commit5b1f187c7a3515a8335a134364929f6e0bbef1f5 (patch)
tree168c353969c87772468d70d7c35aca9b59ccf026 /pub_test.go
parentbb4dbe34df4907c123bae0f34eb3786d244b4480 (diff)
Simplify interface
Diffstat (limited to 'pub_test.go')
-rw-r--r--pub_test.go17
1 files changed, 0 insertions, 17 deletions
diff --git a/pub_test.go b/pub_test.go
deleted file mode 100644
index e2e995a..0000000
--- a/pub_test.go
+++ /dev/null
@@ -1,17 +0,0 @@
-package main
-
-import (
- "bytes"
- "testing"
-)
-
-var b64pub = []byte(`RWRbOC0bBf7abfanaXuTYfCa6+YO69Kxyz8RD5nL/3Ta7umY6iOwnBrG`)
-
-func TestUnmarshalPub(t *testing.T) {
- v := new(PubKey)
- v.Unmarshal(b64pub)
- out, _ := v.Marshal()
- if !bytes.Equal(b64pub, out) {
- t.Errorf("expected %v, got %v", b64pub, out)
- }
-}