This commit is contained in:
hlaaftana
2020-04-26 11:12:16 +03:00
committed by GitHub
parent 31ba27590c
commit 76ffa4fa25
6 changed files with 27 additions and 1 deletions

View File

@@ -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"]

View File

@@ -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":

5
tests/js/t11697.nim Normal file
View File

@@ -0,0 +1,5 @@
import tables
var xs: Table[int, Table[int, int]]
doAssertRaises(KeyError): reset xs[0]

8
tests/js/temptyseq.nim Normal file
View File

@@ -0,0 +1,8 @@
# #12671
proc foo =
var x: seq[int]
doAssertRaises(IndexError):
inc x[0]
foo()

View File

@@ -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"

8
tests/tuples/t12892.nim Normal file
View File

@@ -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)"