CppunitTest_vcl_pdfexport2: relax testPdfImageHyperlink a bit
commitfe9dab32a3083059f46aba1ba5eab5840c2d07b5
authorMiklos Vajna <vmiklos@collabora.com>
Wed, 9 Oct 2024 13:11:18 +0000 (9 15:11 +0200)
committerMiklos Vajna <vmiklos@collabora.com>
Wed, 9 Oct 2024 21:06:26 +0000 (9 23:06 +0200)
treec5eceba809712c43fbc297298692c3257f4f4b87
parentd70026abf786e860c893061ca16e1dd718bd99ce
CppunitTest_vcl_pdfexport2: relax testPdfImageHyperlink a bit

This will start to fail on pdfium-6764 with:
pdfexport2.cxx:4186:Assertion
Test name: (anonymous namespace)::testPdfImageHyperlink::TestBody
equality assertion failed
- Expected: 0.0012626264
- Actual  : 0.0012626261

But the original problem was that the repriprocal was just 0.00126. If
we require one less digit, 1/0.001262626 is 792.0001647360343 and
1/0.0012626264 is 791.9999138304095, so the original problem that the
rounded result is 794 points (and not 792) is still tested.

Change-Id: Ia4489625fd25eca971261b14005b10bbf34343eb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174724
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
vcl/qa/cppunit/pdfexport/pdfexport2.cxx