summary refs log tree commit diff stats
path: root/tests/int/tints.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/int/tints.nim')
-rw-r--r--tests/int/tints.nim8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/int/tints.nim b/tests/int/tints.nim
index a7d27d736..773e8ccad 100644
--- a/tests/int/tints.nim
+++ b/tests/int/tints.nim
@@ -1,5 +1,5 @@
 discard """
-  matrix: "; --backend:js --jsbigint64:off; --backend:js --jsbigint64:on"
+  matrix: "; --backend:js --jsbigint64:off -d:nimStringHash2; --backend:js --jsbigint64:on"
   output: '''
 0 0
 0 0
@@ -7,6 +7,7 @@ Success'''
 """
 # Test the different integer operations
 
+
 import std/private/jsutils
 
 var testNumber = 0
@@ -141,4 +142,9 @@ block: # shl
   when not defined(js) or (defined(js) and compileOption("jsbigint64")):
     doAssert u64 shl 1 == u64 - 1
 
+block: # bug #23378
+  var neg = -1  # prevent compile-time evaluation
+  let n = abs BiggestInt neg
+  doAssert n == 1
+
 echo("Success") #OUT Success