UNPKG
rot-13
Version:
latest (1.0.0)
1.0.0
rot13
github.com/grant/rot-13
grant/rot-13
rot-13
/
test.js
15 lines
(11 loc)
•
260 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
var
rot13 =
require
(
'./index.js'
);
import
test
from
'ava'
;
test
(
'abc'
,
t
=>
{ t.
is
(
rot13
(
'abc'
),
'nop'
); });
test
(
'2x'
,
t
=>
{ t.
is
(
rot13
(
rot13
(
'abc'
)),
'abc'
); });
test
(
'spaces, non-ascii'
,
t
=>
{ t.
is
(
rot13
(
'😀f😁 😂'
),
'😀s😁 😂'
); });