]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/test/intltest/numbertest_api.cpp
ICU-64252.0.1.tar.gz
[apple/icu.git] / icuSources / test / intltest / numbertest_api.cpp
index 8d6fe87fd07e7c1314180c0df30a91c49f0d06d4..f0d941d3c255e3e9d953cbd7face8e8d10b5489d 100644 (file)
@@ -1345,8 +1345,10 @@ void NumberFormatterApiTest::grouping() {
             u"8.765",
             u"0");
 
-    // NOTE: Hungarian is interesting because it has minimumGroupingDigits=4 in locale data
-    // If this test breaks due to data changes, find another locale that has minimumGroupingDigits.
+    // NOTE: Hungarian was interesting because it had minimumGroupingDigits=4 in locale data.
+    // Open source has fixed Hungarian to have minimumGroupingDigits=1 and changed this test to
+    // use Polish with minimumGroupingDigits=2. However for now we keep the test using Hungarian
+    // to verify the change.
     assertFormatDescendingBig(
             u"Hungarian Grouping",
             u"group-auto",
@@ -1354,9 +1356,9 @@ void NumberFormatterApiTest::grouping() {
             Locale("hu"),
             u"87 650 000",
             u"8 765 000",
-            u"876500",
-            u"87650",
-            u"8765",
+            u"876 500",
+            u"87 650",
+            u"8 765",
             u"876,5",
             u"87,65",
             u"8,765",
@@ -1369,8 +1371,8 @@ void NumberFormatterApiTest::grouping() {
             Locale("hu"),
             u"87 650 000",
             u"8 765 000",
-            u"876500",
-            u"87650",
+            u"876 500",
+            u"87 650",
             u"8765",
             u"876,5",
             u"87,65",