Skip to content

Commit

Permalink
nip49: augment normalization test.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Feb 16, 2024
1 parent faf7671 commit 1b286e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nip49/nip49_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ func TestEncryptAndDecrypt(t *testing.T) {
func TestNormalization(t *testing.T) {
nonce := []byte{1, 2, 3, 4}
n := 8
key1, err1 := getKey(string([]byte{0xE2, 0x84, 0xAB, 0xE2, 0x84, 0xA6}), nonce, n)
key2, err2 := getKey(string([]byte{0xC3, 0x85, 0xCE, 0xA9}), nonce, n)
key3, err3 := getKey("ÅΩ", nonce, n)
key4, err4 := getKey("ÅΩ", nonce, n)
key1, err1 := getKey(string([]byte{0xE2, 0x84, 0xAB, 0xE2, 0x84, 0xA6, 0xE1, 0xBA, 0x9B, 0xCC, 0xA3}), nonce, n)
key2, err2 := getKey(string([]byte{0xC3, 0x85, 0xCE, 0xA9, 0xE1, 0xB9, 0xA9}), nonce, n)
key3, err3 := getKey("ÅΩẛ̣", nonce, n)
key4, err4 := getKey("ÅΩẛ̣", nonce, n)
if merr := errors.Join(err1, err2, err3, err4); merr != nil {
t.Fatalf("getKey errored: %s", merr)
return
Expand Down

0 comments on commit 1b286e5

Please sign in to comment.