diff options
author | Elliott Hughes <enh@google.com> | 2013-02-13 15:35:42 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2013-02-13 15:35:42 -0800 |
commit | ec7e47659aba15fae49d1a7296ab06a928af0864 (patch) | |
tree | 71ee69cedb3f7d43e7521eebf97be56e15a436d4 | |
parent | 4151fc413b73e447118965ca09fd5bad747f342d (diff) | |
download | libcore-ec7e47659aba15fae49d1a7296ab06a928af0864.zip libcore-ec7e47659aba15fae49d1a7296ab06a928af0864.tar.gz libcore-ec7e47659aba15fae49d1a7296ab06a928af0864.tar.bz2 |
Admit that we can't really fix DateFormatSymbols serialization...
...by relaxing a test.
Change-Id: Icbc53a99670487b5878ee0971aea05be9d284d0c
-rw-r--r-- | luni/src/test/java/libcore/java/text/DateFormatSymbolsTest.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/luni/src/test/java/libcore/java/text/DateFormatSymbolsTest.java b/luni/src/test/java/libcore/java/text/DateFormatSymbolsTest.java index 4d9c87d..992e352 100644 --- a/luni/src/test/java/libcore/java/text/DateFormatSymbolsTest.java +++ b/luni/src/test/java/libcore/java/text/DateFormatSymbolsTest.java @@ -67,9 +67,10 @@ public class DateFormatSymbolsTest extends junit.framework.TestCase { assertEquals("stycznia", formatDate(pl, "MMMM", originalDfs)); assertEquals("stycze\u0144", formatDate(pl, "LLLL", originalDfs)); - // Whereas the deserialized object can't, because it lost the strings... + // But the deserialized object is screwed because the RI's serialized form doesn't + // contain the locale or the necessary strings. Don't serialize DateFormatSymbols, folks! assertEquals("stycznia", formatDate(pl, "MMMM", deserializedDfs)); - assertEquals("stycznia", formatDate(pl, "LLLL", deserializedDfs)); + assertEquals("January", formatDate(pl, "LLLL", deserializedDfs)); } private String formatDate(Locale l, String fmt, DateFormatSymbols dfs) { |