summaryrefslogtreecommitdiffstats
path: root/luni/src/test
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-10-28 04:51:43 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-10-28 04:51:43 +0000
commit24c84636d0bac7efcfa63676a1b67683b8538731 (patch)
tree0cf9058b078b5e6527c9d846e6b3661207fac123 /luni/src/test
parent66636a1da0fb894f403e9a9ebc8508ad6a278565 (diff)
parent64c8a4f483c21e59a7c03fd501dc921d2982e6b7 (diff)
downloadlibcore-24c84636d0bac7efcfa63676a1b67683b8538731.zip
libcore-24c84636d0bac7efcfa63676a1b67683b8538731.tar.gz
libcore-24c84636d0bac7efcfa63676a1b67683b8538731.tar.bz2
am 64c8a4f4: Merge "Regression test for sl date format consistency."
* commit '64c8a4f483c21e59a7c03fd501dc921d2982e6b7': Regression test for sl date format consistency.
Diffstat (limited to 'luni/src/test')
-rw-r--r--luni/src/test/java/libcore/java/text/SimpleDateFormatTest.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/luni/src/test/java/libcore/java/text/SimpleDateFormatTest.java b/luni/src/test/java/libcore/java/text/SimpleDateFormatTest.java
index e73104d..d228dc8 100644
--- a/luni/src/test/java/libcore/java/text/SimpleDateFormatTest.java
+++ b/luni/src/test/java/libcore/java/text/SimpleDateFormatTest.java
@@ -378,4 +378,11 @@ public class SimpleDateFormatTest extends junit.framework.TestCase {
fail();
} catch (NullPointerException expected) {}
}
+
+ // http://b/17431155
+ public void test_sl_dates() throws Exception {
+ DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, new Locale("sl"));
+ df.setTimeZone(TimeZone.getTimeZone("UTC"));
+ assertEquals("1. 1. 70", df.format(0L));
+ }
}