diff options
author | blafoo <github@blafoo.de> | 2012-02-21 22:13:24 +0100 |
---|---|---|
committer | blafoo <github@blafoo.de> | 2012-02-23 23:31:32 +0100 |
commit | 7ac4206e7c0308d2127845d7bf9214e73b845295 (patch) | |
tree | e76fd3a8c17c0a2cdd985ca7e393f8d072e24d05 /tests/src/cgeo | |
parent | 6b58e073439bec94f0bbe59284e7d9bcab329f7f (diff) | |
download | cgeo-7ac4206e7c0308d2127845d7bf9214e73b845295.zip cgeo-7ac4206e7c0308d2127845d7bf9214e73b845295.tar.gz cgeo-7ac4206e7c0308d2127845d7bf9214e73b845295.tar.bz2 |
Unified methods for BASE 31
Diffstat (limited to 'tests/src/cgeo')
-rw-r--r-- | tests/src/cgeo/geocaching/utils/CryptUtilsTest.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/src/cgeo/geocaching/utils/CryptUtilsTest.java b/tests/src/cgeo/geocaching/utils/CryptUtilsTest.java index 29c0e92..e42df3f 100644 --- a/tests/src/cgeo/geocaching/utils/CryptUtilsTest.java +++ b/tests/src/cgeo/geocaching/utils/CryptUtilsTest.java @@ -1,5 +1,7 @@ package cgeo.geocaching.utils; +import cgeo.geocaching.connector.gc.GCBase; + import junit.framework.TestCase; public class CryptUtilsTest extends TestCase { @@ -11,8 +13,8 @@ public class CryptUtilsTest extends TestCase { } public static void testConvertToGcBase31() { - assertEquals("1186660", CryptUtils.convertToGcBase31("GC1PKK9")); - assertEquals("4660", CryptUtils.convertToGcBase31("GC1234")); - assertEquals("61731", CryptUtils.convertToGcBase31("GCF123")); + assertEquals(1186660, GCBase.gccodeToGCId("GC1PKK9")); + assertEquals(4660, GCBase.gccodeToGCId("GC1234")); + assertEquals(61731, GCBase.gccodeToGCId("GCF123")); } } |