make more tests green

This commit is contained in:
Araq 2018-02-10 20:55:05 +01:00
commit b57d14b1ae
20 changed files with 20 additions and 20 deletions

View file

@ -1,7 +1,7 @@
discard """
file: "tinc.nim"
line: 8
errormsg: "type mismatch: got (int)"
errormsg: "type mismatch: got <int>"
"""
var x = 0

View file

@ -1,7 +1,7 @@
discard """
file: "tinout.nim"
line: 12
errormsg: "type mismatch: got (int literal(3))"
errormsg: "type mismatch: got <int literal(3)>"
"""
# Test in out checking for parameters

View file

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

View file

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

View file

@ -1,7 +1,7 @@
discard """
file: "tsimtych.nim"
line: 10
errormsg: "type mismatch: got (bool) but expected \'string\'"
errormsg: "type mismatch: got <bool> but expected \'string\'"
"""
# Test 2
# Simple type checking