From 4231aeb7ff7953e64dc4966a8ba86a676537a679 Mon Sep 17 00:00:00 2001 From: Bananeweizen Date: Mon, 7 Oct 2013 20:51:01 +0200 Subject: fix #3335: calendar time recognized wrongly --- tests/src/cgeo/geocaching/GeocacheTest.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'tests/src') diff --git a/tests/src/cgeo/geocaching/GeocacheTest.java b/tests/src/cgeo/geocaching/GeocacheTest.java index 7d26370..6d3eec3 100644 --- a/tests/src/cgeo/geocaching/GeocacheTest.java +++ b/tests/src/cgeo/geocaching/GeocacheTest.java @@ -228,13 +228,14 @@ public class GeocacheTest extends CGeoTestCase { assertTime("text 14:20 text", 14, 20); assertNoTime("text 30:40 text"); assertNoTime("text 14:90 text"); - final String time_hours = CgeoApplication.getInstance().getString(R.string.cache_time_full_hours); - assertTime("text 16 " + time_hours, 16, 0); - assertTime("text 16 " + StringUtils.lowerCase(time_hours), 16, 0); - assertTime("text 16:00 " + time_hours, 16, 0); - assertTime("text 16.00 " + time_hours, 16, 0); + final String timeHours = CgeoApplication.getInstance().getString(R.string.cache_time_full_hours); + assertTime("text 16 " + timeHours, 16, 0); + assertTime("text 16 " + StringUtils.lowerCase(timeHours), 16, 0); + assertTime("text 16:00 " + timeHours, 16, 0); + assertTime("text 16.00 " + timeHours, 16, 0); assertTime("text 14:20.", 14, 20); assertTime("14:20", 14, 20); + assertTime("Uhrzeit: 17-20 " + timeHours + "", 17, 00); } private static void assertTime(final String description, final int hours, final int minutes) { -- cgit v1.1