merge: Add test case to Vigenere Cipher Algorithm (#1017)

This commit is contained in:
Ankush263
2022-05-17 16:58:00 +05:30
committed by GitHub
parent c865654f27
commit 4cd6fd4f1b

View File

@ -0,0 +1,13 @@
import { encrypt, decrypt } from '../VigenereCipher'
test('Hello world! === dcrypt(encrypt(Hello world!))', () => {
const word = 'Hello world!'
const result = decrypt(encrypt(word, 'code'), 'code')
expect(result).toMatch(word)
})
test('The Algorithms === dcrypt(encrypt(The Algorithms))', () => {
const word = 'The Algorithms'
const result = decrypt(encrypt(word, 'code'), 'code')
expect(result).toMatch(word)
})