o3tl/qa/test-unit_conversion.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 984a1827508e7298611476cf747c4acc96dec58a Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Sun Feb 14 15:28:21 2021 +0300 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Sun Feb 14 14:11:58 2021 +0100 Fix copy-paste leftover Change-Id: If00eb6272443e1b97b6990141d091daa1d36dc34 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110881 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/o3tl/qa/test-unit_conversion.cxx b/o3tl/qa/test-unit_conversion.cxx index 72a0e9b1f43c..983c0845a4cd 100644 --- a/o3tl/qa/test-unit_conversion.cxx +++ b/o3tl/qa/test-unit_conversion.cxx @@ -658,8 +658,8 @@ static_assert(o3tl::convert(12700, o3tl::Length::mm100, o3tl::Length::in1000) == static_assert(o3tl::convert(12700, o3tl::Length::mm10, o3tl::Length::in1000) == 50000); static_assert(o3tl::convert(12700, o3tl::Length::mm, o3tl::Length::in1000) == 500000); static_assert(o3tl::convert(12700, o3tl::Length::cm, o3tl::Length::in1000) == 5000000); -static_assert(eq(o3tl::convert(127.0, o3tl::Length::m, o3tl::Length::in1000), 5E6)); -static_assert(eq(o3tl::convert(127.0, o3tl::Length::km, o3tl::Length::in1000), 5E9)); +static_assert(o3tl::convert(12700, o3tl::Length::m, o3tl::Length::in1000) == 500000000); +static_assert(o3tl::convert(12700, o3tl::Length::km, o3tl::Length::in1000) == 500000000000); static_assert(o3tl::convert(457200, o3tl::Length::emu, o3tl::Length::in1000) == 500); static_assert(o3tl::convert(3600, o3tl::Length::twip, o3tl::Length::in1000) == 2500); static_assert(o3tl::convert(900, o3tl::Length::pt, o3tl::Length::in1000) == 12500); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits