From 1e2fbe1c872735c225bf400e7e540f02918bf4a7 Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Wed, 24 May 2023 17:42:58 +0200 Subject: [PATCH] test --- tests/test_intops.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_intops.nim b/tests/test_intops.nim index 077a61b..d2d8ec7 100644 --- a/tests/test_intops.nim +++ b/tests/test_intops.nim @@ -42,6 +42,8 @@ template testMulWiden[T: SomeUnsignedInt]() = doAssert mulWiden(T(2), T(2)) == (T(4), T(0)) doAssert mulWiden(T.high, T(1)) == (T.high, T(0)) doAssert mulWiden(T(1), T.high) == (T.high, T(0)) + echo mulWiden(T.high, T.high) + echo T.high doAssert mulWiden(T.high, T.high) == (T(1), T.high - 1) doAssert mulWiden(T.high, T.high, T(0)) == (T(1), T.high - 1)