require errormsg to be specified before file.
This commit is contained in:
parent
ca394ebd95
commit
1105d03644
264 changed files with 305 additions and 623 deletions
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
line: 24
|
||||
errormsg: "invalid indentation"
|
||||
line: 24
|
||||
"""
|
||||
|
||||
import macros
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
discard """
|
||||
errormsg: "invalid number"
|
||||
file: "tinvalidintegerliteral1.nim"
|
||||
line: 7
|
||||
errormsg: "invalid number"
|
||||
"""
|
||||
|
||||
echo 0b
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
discard """
|
||||
errormsg: "invalid number"
|
||||
file: "tinvalidintegerliteral2.nim"
|
||||
line: 7
|
||||
errormsg: "invalid number"
|
||||
"""
|
||||
|
||||
echo 0x
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
discard """
|
||||
errormsg: "0O5 is an invalid int literal; For octal literals use the '0o' prefix."
|
||||
file: "tinvalidintegerliteral3.nim"
|
||||
line: 7
|
||||
errormsg: "0O5 is an invalid int literal; For octal literals use the '0o' prefix."
|
||||
"""
|
||||
|
||||
echo 0O5
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
discard """
|
||||
errormsg: "invalid indentation"
|
||||
file: "tmissingnl.nim"
|
||||
line: 7
|
||||
errormsg: "invalid indentation"
|
||||
"""
|
||||
|
||||
import strutils let s: seq[int] = @[0, 1, 2, 3, 4, 5, 6]
|
||||
|
||||
#s[1..3] = @[]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
discard """
|
||||
file: "tstrlits.nim"
|
||||
output: "a\"\"long string\"\"\"\"\"abc\"def_'2'●𝌆𝌆A"
|
||||
"""
|
||||
# Test the new different string literals
|
||||
|
|
@ -19,6 +18,3 @@ stdout.write(tripleEmpty)
|
|||
stdout.write(raw)
|
||||
stdout.write(escaped)
|
||||
#OUT a""long string"""""abc"def_'2'●𝌆𝌆A
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
discard """
|
||||
errormsg: "invalid token: trailing underscore"
|
||||
file: "tunderscores.nim"
|
||||
line: 8
|
||||
errormsg: "invalid token: trailing underscore"
|
||||
"""
|
||||
# Bug #502670
|
||||
|
||||
|
|
@ -9,6 +9,3 @@ var ef_ = 3 #ERROR_MSG invalid token: _
|
|||
var a__b = 1
|
||||
var c___d = 2
|
||||
echo(ab, cd, ef_)
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue