We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c865654 commit 4cd6fd4Copy full SHA for 4cd6fd4
Ciphers/test/VigenereCipher.test.js
@@ -0,0 +1,13 @@
1
+import { encrypt, decrypt } from '../VigenereCipher'
2
+
3
+test('Hello world! === dcrypt(encrypt(Hello world!))', () => {
4
+ const word = 'Hello world!'
5
+ const result = decrypt(encrypt(word, 'code'), 'code')
6
+ expect(result).toMatch(word)
7
+})
8
9
+test('The Algorithms === dcrypt(encrypt(The Algorithms))', () => {
10
+ const word = 'The Algorithms'
11
12
13
0 commit comments