diff options
author | Hank Shen <swh@admpub.com> | 2023-12-06 07:34:46 +0300 |
---|---|---|
committer | Hank Shen <swh@admpub.com> | 2023-12-06 07:34:46 +0300 |
commit | 53756c3ef985f8b24346d829c673156861066871 (patch) | |
tree | 766ba6e643e5e21058b3f942c0c9eb014dfe10f1 /litecodec_test.go | |
parent | c33b59bcab7ae16914ebeae200a6195204e76b3a (diff) |
Diffstat (limited to 'litecodec_test.go')
-rw-r--r-- | litecodec_test.go | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/litecodec_test.go b/litecodec_test.go deleted file mode 100644 index 875ee7c..0000000 --- a/litecodec_test.go +++ /dev/null @@ -1,20 +0,0 @@ -package securecookie - -import "testing" - -func TestLiteCodec(t *testing.T) { - c := NewLiteCodec() - str := `TestLiteCodec` - encoded, err := c.Encode(`name`, str) - if err != nil { - t.Error(err) - } - var decoded string - err = c.Decode(`name`, encoded, &decoded) - if err != nil { - t.Error(err) - } - if decoded != str { - t.Fatalf("expected %s, got: %#v", str, decoded) - } -} |