aboutsummaryrefslogtreecommitdiff
path: root/gen_test.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-04-16 16:22:58 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-04-16 16:22:58 +0200
commit7d91de5495a01877f1e5c95b995fce7100343e67 (patch)
tree9cd149f0743bc3f84d76ffa4ae9077bff9026e89 /gen_test.go
parent73f97fb13581b2657dae352d46c0725553a5b894 (diff)
gen test
Diffstat (limited to 'gen_test.go')
-rw-r--r--gen_test.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/gen_test.go b/gen_test.go
new file mode 100644
index 0000000..3b8df7a
--- /dev/null
+++ b/gen_test.go
@@ -0,0 +1,13 @@
+package main
+
+import "testing"
+
+func TestNewKey(t *testing.T) {
+ xorkey := make([]byte, 64)
+ pub, sec, err := NewKey(42, xorkey)
+ if err != nil {
+ t.Error(err)
+ }
+ t.Log(pub)
+ t.Log(sec)
+}