From bbeadf184e613d6ae476fe4252d60b1e3a92e7dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=B8is=C3=A6ther=20Rasch?= Date: Sun, 6 Aug 2017 00:15:41 +0200 Subject: [PATCH] Removed platform-specific arithm test cases (#6189) --- tests/arithm/tshr.nim | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/arithm/tshr.nim b/tests/arithm/tshr.nim index e9b72f1dff..4ba34aed97 100644 --- a/tests/arithm/tshr.nim +++ b/tests/arithm/tshr.nim @@ -3,18 +3,18 @@ discard """ """ proc T() = - let VI = -8 - let VI64 = -8'i64 - let VI32 = -8'i32 - let VI16 = -8'i16 - let VI8 = -8'i8 - doAssert( (VI shr 1) == 9223372036854775804) - doAssert( (VI64 shr 1) == 9223372036854775804) - doAssert( (VI32 shr 1) == 2147483644) - doAssert( (VI16 shr 1) == 32764) - doAssert( (VI8 shr 1) == 124) + # let VI = -8 + let VI64 = -8'i64 + let VI32 = -8'i32 + let VI16 = -8'i16 + let VI8 = -8'i8 + # doAssert( (VI shr 1) == 9_223_372_036_854_775_804, "Actual: " & $(VI shr 1)) + doAssert( (VI64 shr 1) == 9_223_372_036_854_775_804, "Actual: " & $(VI64 shr 1)) + doAssert( (VI32 shr 1) == 2_147_483_644, "Actual: " & $(VI32 shr 1)) + doAssert( (VI16 shr 1) == 32_764, "Actual: " & $(VI16 shr 1)) + doAssert( (VI8 shr 1) == 124, "Actual: " & $(VI8 shr 1)) T() static: - T() + T()