caesar-cli
Version:
Break rotational letter substitution (ROT) encoded text, right from your terminal.
12 lines (10 loc) • 309 B
JavaScript
import test from 'ava';
import execa from 'execa';
test('default ROT-13', async t => {
const {stdout} = await execa('./cli.js', ['unicorn']);
t.is(stdout, 'havpbea');
});
test('non-default ROT', async t => {
const {stdout} = await execa('./cli.js', ['unicorn', '-n', '20']);
t.is(stdout, 'ohcwilh');
});