summaryrefslogtreecommitdiff
path: root/svl/qa
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-08-30 16:30:35 +0200
committerEike Rathke <erack@redhat.com>2017-08-30 16:30:47 +0200
commit9540916d824521592c08fdbff5014a01dffca752 (patch)
tree0bc856778c2ec1f50316a775e7ef50e66e2ba854 /svl/qa
parentf49ef5b771910384de0bc2d4c86ad3e0442b295a (diff)
Unit tests for tdf#91758
Change-Id: I4015a339ca18b214adca228b58319d897f0ad910
Diffstat (limited to 'svl/qa')
-rw-r--r--svl/qa/unit/svl.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx
index 2b6baaf90293..4cd89b0a95a4 100644
--- a/svl/qa/unit/svl.cxx
+++ b/svl/qa/unit/svl.cxx
@@ -1097,7 +1097,11 @@ void Test::testIsNumberFormat()
{ "Jan1", false },
{ "Jan1 2000", true },
{ "Jan 1", true },
- { "Jan 1 2000", true}
+ { "Jan 1 2000", true },
+ { "5-12-14", false },
+ { "005-12-14", true },
+ { "15-10-30", true },
+ { "2015-10-30", true }
};
for (size_t i = 0; i < SAL_N_ELEMENTS(aTests); ++i)
@@ -1106,7 +1110,7 @@ void Test::testIsNumberFormat()
double nNumber = 0;
OUString aString = OUString::createFromAscii(aTests[i].pFormat);
bool bIsNumber = aFormatter.IsNumberFormat(aString, nIndex, nNumber);
- CPPUNIT_ASSERT_EQUAL(aTests[i].bIsNumber, bIsNumber);
+ CPPUNIT_ASSERT_EQUAL_MESSAGE(aTests[i].pFormat, aTests[i].bIsNumber, bIsNumber);
}