made tests green again

This commit is contained in:
Araq 2012-07-09 00:54:46 +02:00
commit 795afb0021
15 changed files with 38 additions and 30 deletions

View file

@ -1,6 +1,6 @@
discard """
line: 15
errormsg: "type mismatch: got (int)"
line: 16
errormsg: "type mismatch: got (int literal(232))"
"""
proc myGenericProc[T: object|tuple|ptr|ref|distinct](x: T): string =
@ -12,7 +12,7 @@ type
var
x: TMyObj
assert myGenericProc(232) == "232"
assert myGenericProc(x) == "(x: 0, y: 0)"
assert myGenericProc(232) == "232"

View file

@ -1,7 +1,7 @@
discard """
file: "tinvalidnewseq.nim"
line: 15
errormsg: "type mismatch: got (array[0..6, string], int)"
errormsg: "type mismatch: got (array[0..6, string], int literal(7))"
"""
import re, strutils

View file

@ -1,7 +1,7 @@
discard """
file: "tnamedparams.nim"
line: 8
errormsg: "type mismatch: got (input: string, filename: string, line: int, col: int)"
errormsg: "type mismatch: got (input: string, filename: string, line: int literal(1), col: int literal(23))"
"""
import pegs

View file

@ -1,6 +1,6 @@
discard """
line: 6
errormsg: "type mismatch: got (int) but expected 'bool'"
errormsg: "type mismatch: got (int literal(1)) but expected 'bool'"
"""
if 1:

View file

@ -1,6 +1,6 @@
discard """
line: 8
msg: "type mismatch: got (int)"
msg: "type mismatch: got (int literal(3))"
"""
# please finally disallow Len(3)