diff options
Diffstat (limited to 'harmony-tests/src/test')
-rw-r--r-- | harmony-tests/src/test/java/org/apache/harmony/tests/java/text/MessageFormatTest.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/MessageFormatTest.java b/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/MessageFormatTest.java index 171f247..0920714 100644 --- a/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/MessageFormatTest.java +++ b/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/MessageFormatTest.java @@ -950,4 +950,12 @@ public class MessageFormatTest extends TestCase { String res = MessageFormat.format("bgcolor=\"{10}\"", messageArgs); assertEquals(res, "bgcolor=\"example10\""); } + + // http://b/19011159 + public void test19011159() { + final String pattern = "ab{0,choice,0#1'2''3'''4''''.}yz"; + final MessageFormat format = new MessageFormat(pattern, Locale.ENGLISH); + final Object[] zero0 = new Object[] { 0 }; + assertEquals("ab12'3'4''.yz", format.format(zero0)); + } } |