blob: b53220f0208fa3e3a5fdabe15aa7d610fd32a51b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package cgeo.geocaching.utils;
import cgeo.geocaching.utils.CryptUtils;
import junit.framework.TestCase;
public class CryptUtilsTest extends TestCase {
public static void testROT13() {
assertEquals("", CryptUtils.rot13(""));
assertEquals("", CryptUtils.rot13((String) null));
assertEquals("Pnpur uvag", CryptUtils.rot13("Cache hint"));
assertEquals("123", CryptUtils.rot13("123"));
}
}
|