aboutsummaryrefslogtreecommitdiff
path: root/keys_test.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-04-14 18:20:37 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-04-14 18:20:37 +0200
commite9b8a2ef2b5faf2a251665868074e1dc99f01eb5 (patch)
treecb55c98c2f5417699c8dbe413d3f3b90a963d8f9 /keys_test.go
parent7cf2ddaa85197a694c9a44d2bd7d71862d5d5887 (diff)
fix keyout
Diffstat (limited to 'keys_test.go')
-rw-r--r--keys_test.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/keys_test.go b/keys_test.go
index 02a0a6b..7c02b8f 100644
--- a/keys_test.go
+++ b/keys_test.go
@@ -36,7 +36,7 @@ func TestUnmarshalEnc(t *testing.T) {
t.Errorf("want %v, got %v", b64enc, out)
}
t.Logf("%+v", v)
- if !v.IsValid() {
+ if !v.IsValid(nil) {
t.Error("invalid")
}
}
@@ -50,9 +50,8 @@ func TestUnmarshalKDF(t *testing.T) {
t.Errorf("want %v, got %v", b64enc, out)
}
t.Logf("%+v", v)
- /* FIXME KDF missing
- if !v.IsValid() {
+ if !v.IsValid([]byte("test")) {
+ t.Logf("%+v", v)
t.Error("invalid")
}
- */
}