summaryrefslogtreecommitdiff
path: root/o3tl
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-02-14 15:28:21 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-02-14 14:11:58 +0100
commit984a1827508e7298611476cf747c4acc96dec58a (patch)
tree2c5f3b015e5e56ea1f0218f4c774a5ef7dbe5b16 /o3tl
parent02a6949572473189755a3ac3ec974a054863dcfb (diff)
Fix copy-paste leftover
Change-Id: If00eb6272443e1b97b6990141d091daa1d36dc34 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110881 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'o3tl')
-rw-r--r--o3tl/qa/test-unit_conversion.cxx4
1 files changed, 2 insertions, 2 deletions
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);