This commit is contained in:
2023-03-31 13:33:06 +02:00
parent ca24e1d5bf
commit 2550691e2e
14 changed files with 331 additions and 191 deletions

View File

@@ -2,6 +2,7 @@ package cryptext
import (
"fmt"
"gogs.mikescher.com/BlackForestBytes/goext/tst"
"testing"
)
@@ -23,13 +24,13 @@ func TestEncryptAESSimple(t *testing.T) {
panic(err)
}
assertEqual(t, string(str1), string(str3))
tst.AssertEqual(t, string(str1), string(str3))
str4, err := EncryptAESSimple(pw, str3, 512)
if err != nil {
panic(err)
}
assertNotEqual(t, string(str2), string(str4))
tst.AssertNotEqual(t, string(str2), string(str4))
}