diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2021-05-26 14:31:27 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-05-26 17:13:39 +0200 |
commit | 60b98189281524c85b559ee3b6adc1381b793b9d (patch) | |
tree | d7a4e8c6c55eb5b3d4c706bb53f3bd6a8c01805e | |
parent | 0d3dd9d9f6f0e6236c8db8ebdea44c78854639a8 (diff) |
tdf137314 Add margin to CppunitTest assertions
The test had multiple failures on Windows with:
oox/qa/unit/vml.cxx(79) : error : Assertion
Test name: tdf137314_vml_rotation_unit_fd::TestBody
equality assertion failed
- Expected: 1490
- Actual : 1491
So add a 1px margin to all value checks.
Change-Id: I70298db253299a57cc37eed482c0816d902fbeab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116192
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r-- | oox/qa/unit/vml.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/qa/unit/vml.cxx b/oox/qa/unit/vml.cxx index 4045b0336c7f..d3b84712a459 100644 --- a/oox/qa/unit/vml.cxx +++ b/oox/qa/unit/vml.cxx @@ -76,9 +76,9 @@ CPPUNIT_TEST_FIXTURE(OoxVmlTest, tdf137314_vml_rotation_unit_fd) // Without fix in place, the vector was -1441|1490. // [1] and [2] are Bezier-curve control points. sal_Int32 nDiffX = aPolygon[3].X - aPolygon[0].X; - CPPUNIT_ASSERT_EQUAL(sal_Int32(1490), nDiffX); + CPPUNIT_ASSERT_DOUBLES_EQUAL(sal_Int32(1490), nDiffX, 1); sal_Int32 nDiffY = aPolygon[3].Y - aPolygon[0].Y; - CPPUNIT_ASSERT_EQUAL(sal_Int32(1441), nDiffY); + CPPUNIT_ASSERT_DOUBLES_EQUAL(sal_Int32(1441), nDiffY, 1); } CPPUNIT_TEST_FIXTURE(OoxVmlTest, testSpt202ShapeType) |