summaryrefslogtreecommitdiff
path: root/svl/qa
diff options
context:
space:
mode:
authorLaurent Balland-Poirier <laurent.balland-poirier@laposte.net>2016-06-24 23:28:39 +0200
committerEike Rathke <erack@redhat.com>2016-06-29 14:38:09 +0000
commit6951f28bbac44b29741089e88f842f124baf317f (patch)
treea5df76daaa40d5f1d0f0b075700eb982d842ffb8 /svl/qa
parent9ed5793a8b602f992ad0f52b919e066d25eda49e (diff)
tdf#100592 Add extra number formats for fraction
Change-Id: Ia3a5fa02029e06e083fcc10748b0deb3048dae79 Reviewed-on: https://gerrit.libreoffice.org/26675 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'svl/qa')
-rw-r--r--svl/qa/unit/svl.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx
index d54fda3936f2..5c6b7452d1e8 100644
--- a/svl/qa/unit/svl.cxx
+++ b/svl/qa/unit/svl.cxx
@@ -146,7 +146,12 @@ void Test::testNumberFormat()
// Followings aren't in range of NF_FRACTION_START and NF_FRACTION_END
// see enum NfIndexTableOffset in svl/inc/svl/zforlist.hxx
const char* pFractionExt[] = {
+ "# \?\?\?/\?\?\?",
+ "# \?/2",
"# \?/4",
+ "# \?/8",
+ "# \?\?/16",
+ "# \?\?/10",
"# \?\?/100",
nullptr
};
@@ -223,7 +228,7 @@ void Test::testNumberFormat()
{ NF_SCIENTIFIC_START, NF_SCIENTIFIC_END, 2, pScientific },
{ NF_PERCENT_START, NF_PERCENT_END, 2, pPercent },
{ NF_FRACTION_START, NF_FRACTION_END, 2, pFraction },
- { NF_FRACTION_3, NF_FRACTION_4, 2, pFractionExt },
+ { NF_FRACTION_3D, NF_FRACTION_100, 7, pFractionExt },
{ NF_CURRENCY_START, NF_CURRENCY_END, 6, pCurrency },
{ NF_DATE_START, NF_DATE_END, 21, pDate },
{ NF_TIME_START, NF_TIME_END, 7, pTime },