summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--compiler/options.nim3
-rw-r--r--testament/specs.nim2
-rw-r--r--tests/js/t11697.nim5
-rw-r--r--tests/js/temptyseq.nim8
-rw-r--r--tests/stdlib/tunidecode.nim2
-rw-r--r--tests/tuples/t12892.nim8
6 files changed, 27 insertions, 1 deletions
diff --git a/compiler/options.nim b/compiler/options.nim
index 5f4372177..97cf435c5 100644
--- a/compiler/options.nim
+++ b/compiler/options.nim
@@ -722,7 +722,8 @@ proc findFile*(conf: ConfigRef; f: string; suppressStdlib = false): AbsoluteFile
 const stdlibDirs = [
   "pure", "core", "arch",
   "pure/collections",
-  "pure/concurrency", "impure",
+  "pure/concurrency",
+  "pure/unidecode", "impure",
   "wrappers", "wrappers/linenoise",
   "windows", "posix", "js"]
 
diff --git a/testament/specs.nim b/testament/specs.nim
index b79cade2b..964d53d24 100644
--- a/testament/specs.nim
+++ b/testament/specs.nim
@@ -237,6 +237,8 @@ proc parseSpec*(filename: string): TSpec =
           when defined(freebsd): result.err = reDisabled
         of "arm64":
           when defined(arm64): result.err = reDisabled
+        of "i386":
+          when defined(i386): result.err = reDisabled
         of "openbsd":
           when defined(openbsd): result.err = reDisabled
         of "netbsd":
diff --git a/tests/js/t11697.nim b/tests/js/t11697.nim
new file mode 100644
index 000000000..967752586
--- /dev/null
+++ b/tests/js/t11697.nim
@@ -0,0 +1,5 @@
+import tables
+
+var xs: Table[int, Table[int, int]]
+
+doAssertRaises(KeyError): reset xs[0]
diff --git a/tests/js/temptyseq.nim b/tests/js/temptyseq.nim
new file mode 100644
index 000000000..df4b3e8da
--- /dev/null
+++ b/tests/js/temptyseq.nim
@@ -0,0 +1,8 @@
+# #12671
+
+proc foo =
+  var x: seq[int]
+  doAssertRaises(IndexError):
+    inc x[0]
+
+foo()
diff --git a/tests/stdlib/tunidecode.nim b/tests/stdlib/tunidecode.nim
index 689453c76..576bfa2cb 100644
--- a/tests/stdlib/tunidecode.nim
+++ b/tests/stdlib/tunidecode.nim
@@ -5,6 +5,8 @@ discard """
 
 import unidecode
 
+import std/unidecode # #14112
+
 loadUnidecodeTable("lib/pure/unidecode/unidecode.dat")
 
 #assert unidecode("\x53\x17\x4E\xB0") == "Bei Jing"
diff --git a/tests/tuples/t12892.nim b/tests/tuples/t12892.nim
new file mode 100644
index 000000000..d69e99c7f
--- /dev/null
+++ b/tests/tuples/t12892.nim
@@ -0,0 +1,8 @@
+discard """
+  disabled: i386
+"""
+
+template works[T](): auto = T.high - 1
+template breaks[T](): auto = (T.high - 1, true)
+doAssert $works[uint]() == "18446744073709551614"
+doAssert $breaks[uint]() == "(18446744073709551614, true)"