]> gitweb.factorcode.org Git - factor.git/blob - extra/rot13/rot13-tests.factor
rot13: adding some tests.
[factor.git] / extra / rot13 / rot13-tests.factor
1
2 USING: tools.test ;
3
4 IN: rot13
5
6 { "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" } [
7     "NOPQRSTUVWXYZABCDEFGHIJKLMnopqrstuvwxyzabcdefghijklm" rot13
8 ] unit-test
9
10 {
11     "Ubj pna lbh gryy na rkgebireg sebz na\nvagebireg ng AFN? In the elevators,\nthe extrovert looks at the OTHER guy's shoes."
12 } [
13     "How can you tell an extrovert from an\nintrovert at NSA? Va gur ryringbef,\ngur rkgebireg ybbxf ng gur BGURE thl'f fubrf."
14     rot13
15 ] unit-test