Skip to content

Commit f6b4606

Browse files
op01vdnhi
authored andcommitted
add new testcase and fix typo
1 parent e879979 commit f6b4606

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ciphers/xor/xor_cipher_test.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,17 @@ var xorTestData = []struct {
4848
"boffe*}exfn",
4949
},
5050
{
51-
"Encrypt full sentence with key 128",
51+
"Encrypt full sentence with key 64",
5252
"the quick brown fox jumps over the lazy dog.",
5353
64,
5454
"4(%`15)#+`\"2/7.`&/8`*5-03`/6%2`4(%`,!:9`$/'n",
5555
},
56+
{
57+
"Encrypt a word with key 32 make the case swap",
58+
"abcdefghijklmNOPQRSTUVWXYZ",
59+
32,
60+
"ABCDEFGHIJKLMnopqrstuvwxyz",
61+
},
5662
}
5763

5864
func TestXorCipherEncrypt(t *testing.T) {

0 commit comments

Comments
 (0)