History log of /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ChoiceFormatTest.java
Revision Date Author Comments
33d260f88635ce2dde238052e818b3a067b3b7b6 06-Jul-2016 Paul Duffin <paulduffin@google.com> Removed tests that checked previous behavior of ChoiceFormat

Fixes test breakages caused by commit
3683e911af7dde39dc7b4a8bbf4dc9e30e6e91ea

Bug: 29352743
Change-Id: Ie2362044860a4850c057b6b8a0cfbc58d77112db
Test: Ran both ChoiceFormatTest classes.
97a3d514797ffddba65aaa50e352538820a52078 25-Apr-2016 Tobias Thierer <tobiast@google.com> Fix use of Object.equals() to compare arrays.

Use == for object identity, Arrays.equals() for value equality.

Bug: 28189207
Change-Id: I3dcae7f5714e5ab7216b255de376a9c3030f94b8
de75c0aa34c7db47ddec1704e94fa05c54687705 17-Feb-2015 Narayan Kamath <narayan@google.com> Fix handling of consecutive quotes in ChoiceFormat et al.

Two consecutive single quotes ('') must be interpreted as an
escaped single quite sequence. We were implementing it by simply
keeping track of whether the last character was a single quote.
This is insufficient for sequences of three or more quotes since
we shouldn't emit ('') for an escape sequence of ('''). We'll have
to keep track of the number of consecutive quotes we've seen in the
input instead.

This is a partial fix for the bug below. There appears to be another
bug in MessageFormat itself in its handling of subpatterns.

bug: 19011159
Change-Id: Ia71e5d8c1962356cabc265cf80ebc0a04ff84f17
c10ba1bf470b9ae0d9904e28105de5e679840cb9 17-Feb-2015 Narayan Kamath <narayan@google.com> Handle infinities correctly in ChoiceFormat.

We'd like ChoiceFormat.toPattern to emit a pattern that's parseable
by ChoiceFormat - which means we need an infinity that's parseable by
NumberFormat.parse().

Also, implement the nextDouble / previousDouble public API <sadface/>
in terms of Math.nextAfter and Math.nextUp.

bug: 19149384
Change-Id: Ieb13ee70c212d188ff9fde09463ced8d632f47ab
994e4e5ded616a100ca42b16cffa36aa9f595f64 28-Aug-2013 Elliott Hughes <enh@google.com> Add harmony java.text tests.

Change-Id: Id8d0acd77d08ff337b4851ae74a48cc002d66cd9