aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/AndroidManifest.xml3
-rw-r--r--tests/src/cgeo/geocaching/cgBaseTest.java4
2 files changed, 6 insertions, 1 deletions
diff --git a/tests/AndroidManifest.xml b/tests/AndroidManifest.xml
index dafa260..8d1620f 100644
--- a/tests/AndroidManifest.xml
+++ b/tests/AndroidManifest.xml
@@ -2,7 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="cgeo.geocaching.test"
android:versionCode="1"
- android:versionName="1.0">
+ android:versionName="1.0"
+ name="c:geo Tests">
<uses-sdk android:minSdkVersion="3" />
<instrumentation android:targetPackage="cgeo.geocaching" android:name="android.test.InstrumentationTestRunner" />
<application android:icon="@drawable/icon" android:label="@string/app_name">
diff --git a/tests/src/cgeo/geocaching/cgBaseTest.java b/tests/src/cgeo/geocaching/cgBaseTest.java
index 535833e..94f1a9a 100644
--- a/tests/src/cgeo/geocaching/cgBaseTest.java
+++ b/tests/src/cgeo/geocaching/cgBaseTest.java
@@ -79,4 +79,8 @@ public class cgBaseTest extends AndroidTestCase {
}
}
+ public static void testHumanDistance() {
+ assertEquals("?", cgBase.getHumanDistance(null));
+ assertEquals("123 km", cgBase.getHumanDistance(123.456f));
+ }
} \ No newline at end of file