summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorArtur Dorda <artur.dorda+libo@gmail.com>2012-08-10 15:42:51 +0200
committerArtur Dorda <artur.dorda+libo@gmail.com>2012-08-15 13:42:18 +0200
commit9f2a303b9975a7d257990ecefb36cf9e80c02747 (patch)
tree453c1381c08115ea5176602575f7bbf248b3e03c /sax
parent36955a6e1e99858954c7f6d8b96b027359fe522e (diff)
added some extreme values in string-to-measure test
Change-Id: I8fd9029f42159444e7bb56f89eeb83fdb3745732
Diffstat (limited to 'sax')
-rw-r--r--sax/qa/cppunit/test_converter.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sax/qa/cppunit/test_converter.cxx b/sax/qa/cppunit/test_converter.cxx
index c4fe50e3a6c7..c799f452f6a6 100644
--- a/sax/qa/cppunit/test_converter.cxx
+++ b/sax/qa/cppunit/test_converter.cxx
@@ -363,6 +363,9 @@ void ConverterTest::testMeasure()
doTestStringToMeasure(777, "777", MeasureUnit::APPFONT, 10, 4321);
doTestStringToMeasure(80000, "80000", MeasureUnit::SYSFONT, 10, 432100);
//strange values (negative, too large etc.)
+ doTestStringToMeasure(555, "666", MeasureUnit::MM, -1000, 555);
+ doTestStringToMeasure(-1000, "-1001", MeasureUnit::MM, -1000, 555);
+ doTestStringToMeasure(0, "-0", MeasureUnit::MM, -1, 0);
doTestStringToMeasure(-539222987, "1234567890mm", MeasureUnit::MM_10TH, 12, 12345678901);
doTestStringToMeasure(-300, "-300", MeasureUnit::MM, -1000, 555);
doTestStringToMeasure(1305424328, "-999999999999999px", MeasureUnit::PIXEL, -88888888888, 555); //really crazy numbers...