makes 'reject' tests green
This commit is contained in:
parent
c0a3d44060
commit
3560827a28
8 changed files with 27 additions and 13 deletions
|
|
@ -1,7 +1,7 @@
|
|||
discard """
|
||||
file: "t99bott.nim"
|
||||
line: 26
|
||||
errormsg: "constant expression expected"
|
||||
errormsg: "cannot evaluate at compile time: bn"
|
||||
disabled: false
|
||||
"""
|
||||
## 99 Bottles of Beer
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
file: "tbind2.nim"
|
||||
line: 12
|
||||
line: 14
|
||||
errormsg: "ambiguous call"
|
||||
"""
|
||||
# Test the new ``bind`` keyword for templates
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
discard """
|
||||
line: 24
|
||||
errormsg: "usage of 'disallowIf' is a user-defined error"
|
||||
disabled: true
|
||||
"""
|
||||
|
||||
template optZero{x+x}(x: int): int = x*3
|
||||
|
|
@ -25,4 +26,4 @@ if s[0] != "hi":
|
|||
echo "do it"
|
||||
echo "more branches"
|
||||
else:
|
||||
nil
|
||||
discard
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
line: 1804
|
||||
line: 1840
|
||||
file: "system.nim"
|
||||
errormsg: "can raise an unlisted exception: ref EIO"
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
file: "system.nim"
|
||||
line: 696
|
||||
file: "tenummix.nim"
|
||||
line: 11
|
||||
errormsg: "type mismatch"
|
||||
"""
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
discard """
|
||||
file: "system.nim"
|
||||
file: "tnot.nim"
|
||||
line: 14
|
||||
errormsg: "type mismatch"
|
||||
"""
|
||||
# BUG: following compiles, but should not:
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
output: "Error: constant expression expected"
|
||||
line: 7
|
||||
output: "Error: cannot evaluate at compile time: x"
|
||||
line: 10
|
||||
"""
|
||||
|
||||
var x: array[100, char]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue