diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2013-10-07 20:51:01 +0200 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2013-10-07 20:51:01 +0200 |
| commit | 4231aeb7ff7953e64dc4966a8ba86a676537a679 (patch) | |
| tree | 2511d6595d9b27ea3774fe7c1133312d9f69ff3e /tests/src | |
| parent | 6523246cb5fbc887e10a4dc2fbb9314ffbbf2b11 (diff) | |
| download | cgeo-4231aeb7ff7953e64dc4966a8ba86a676537a679.zip cgeo-4231aeb7ff7953e64dc4966a8ba86a676537a679.tar.gz cgeo-4231aeb7ff7953e64dc4966a8ba86a676537a679.tar.bz2 | |
fix #3335: calendar time recognized wrongly
Diffstat (limited to 'tests/src')
| -rw-r--r-- | tests/src/cgeo/geocaching/GeocacheTest.java | 11 |
1 files changed, 6 insertions, 5 deletions
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("<b>14:20</b>", 14, 20); + assertTime("<u><em>Uhrzeit:</em></u> 17-20 " + timeHours + "</span></strong>", 17, 00); } private static void assertTime(final String description, final int hours, final int minutes) { |
