aboutsummaryrefslogtreecommitdiff
path: root/pub_test.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-09-18 13:23:50 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-09-18 13:23:50 +0200
commitab444fef442808f7ff41f70992f19f4b2417841d (patch)
tree7202ce2b0e4ca9ea52eaed908a3eb4e512592017 /pub_test.go
parent753387164ce9d0b610ceae93830cfe1f26f0fdd2 (diff)
ReadFull
Diffstat (limited to 'pub_test.go')
-rw-r--r--pub_test.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/pub_test.go b/pub_test.go
new file mode 100644
index 0000000..a0a37b9
--- /dev/null
+++ b/pub_test.go
@@ -0,0 +1,11 @@
+package main
+
+import "testing"
+
+var b64pub = []byte(`RWRbOC0bBf7abfanaXuTYfCa6+YO69Kxyz8RD5nL/3Ta7umY6iOwnBrG`)
+
+func TestUnmarshalPub(t *testing.T) {
+ v := new(PubKey)
+ v.Unmarshal(b64pub)
+ t.Logf("%+v", v)
+}