made tests green again
This commit is contained in:
parent
e4c432387e
commit
0cac8d9b6f
7 changed files with 20 additions and 20 deletions
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
file: "system.nim"
|
||||
line: 641
|
||||
line: 643
|
||||
errormsg: "type mismatch"
|
||||
"""
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
line: 10
|
||||
errormsg: "illegal capture: 'A'"
|
||||
errormsg: "illegal capture 'A'"
|
||||
"""
|
||||
|
||||
proc outer() =
|
||||
|
|
|
|||
|
|
@ -7,5 +7,5 @@ discard """
|
|||
# shouldn't compile since it doesn't do what you think it does without
|
||||
# importing strutils:
|
||||
|
||||
let x = "abc" in "abcdef"
|
||||
let x = "abcdef".contains("abc")
|
||||
echo x
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ discard """
|
|||
|
||||
import macros, parseutils, strutils
|
||||
|
||||
proc concat(strings: openarray[string]): string =
|
||||
proc concat(strings: varargs[string]): string =
|
||||
result = newString(0)
|
||||
for s in items(strings): result.add(s)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue