summary refs log tree commit diff stats
path: root/tests/arithm
diff options
context:
space:
mode:
authorFredrik Høisæther Rasch <fredrik.rasch@gmail.com>2017-08-06 00:15:41 +0200
committerAndreas Rumpf <rumpf_a@web.de>2017-08-06 00:15:41 +0200
commitbbeadf184e613d6ae476fe4252d60b1e3a92e7dd (patch)
tree936118bb309694bfafb162f01e8d61710346bba8 /tests/arithm
parent03fc7f3941f692de8ae995cf5415f38159b15a02 (diff)
downloadNim-bbeadf184e613d6ae476fe4252d60b1e3a92e7dd.tar.gz
Removed platform-specific arithm test cases (#6189)
Diffstat (limited to 'tests/arithm')
-rw-r--r--tests/arithm/tshr.nim22
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/arithm/tshr.nim b/tests/arithm/tshr.nim
index e9b72f1df..4ba34aed9 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()