summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
Diffstat (limited to 'svl')
-rw-r--r--svl/qa/unit/svl.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx
index 7f0c54a2547e..12efb5b06ea6 100644
--- a/svl/qa/unit/svl.cxx
+++ b/svl/qa/unit/svl.cxx
@@ -1529,6 +1529,19 @@ void Test::testUserDefinedNumberFormats()
sExpected = "117,669,030,460,994.00000000000000000000";
checkPreviewString(aFormatter, sCode, 117669030460994.0, LANGUAGE_ENGLISH_US, sExpected);
}
+ { // tdf#117575 treat thousand separator with '?' in integer part
+ sCode = "\"Value= \"?,??0.00";
+ sExpected = "Value= 3.14";
+ checkPreviewString(aFormatter, sCode, M_PI, LANGUAGE_ENGLISH_US, sExpected);
+ sExpected = "Value= 12.00";
+ checkPreviewString(aFormatter, sCode, 12, LANGUAGE_ENGLISH_US, sExpected);
+ sExpected = "Value= 123.00";
+ checkPreviewString(aFormatter, sCode, 123, LANGUAGE_ENGLISH_US, sExpected);
+ sExpected = "Value= 1,234.00";
+ checkPreviewString(aFormatter, sCode, 1234, LANGUAGE_ENGLISH_US, sExpected);
+ sExpected = "Value= 12,345.00";
+ checkPreviewString(aFormatter, sCode, 12345, LANGUAGE_ENGLISH_US, sExpected);
+ }
}
void Test::testNfEnglishKeywordsIntegrity()