mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-21 16:31:39 +00:00
updated tests to be executed
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
discard """
|
||||
output: "0"
|
||||
"""
|
||||
|
||||
|
||||
# bug #5135
|
||||
proc fail*[E](e: E): void =
|
||||
|
||||
@@ -1,13 +1,17 @@
|
||||
# bug #1940
|
||||
|
||||
discard """
|
||||
nimout: '''===
|
||||
nimout: '''
|
||||
===
|
||||
merge (A) with (B)
|
||||
merge (A B) with (C)
|
||||
merge (A B C) with (D)
|
||||
merge (A B C D) with (E)
|
||||
merge (A B C D E) with (F)
|
||||
==='''
|
||||
===
|
||||
'''
|
||||
|
||||
output: "A B C D E F"
|
||||
"""
|
||||
|
||||
type SqlStmt = tuple
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
discard """
|
||||
action: compile
|
||||
"""
|
||||
|
||||
|
||||
var
|
||||
e = "abc"
|
||||
|
||||
@@ -1,4 +1,15 @@
|
||||
|
||||
discard """
|
||||
output: '''
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
'''
|
||||
"""
|
||||
# bug #1915
|
||||
|
||||
import macros
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
discard """
|
||||
exitcode: 1
|
||||
outputsub: "0"
|
||||
"""
|
||||
|
||||
import tconfusinglocal
|
||||
|
||||
|
||||
fail "foo"
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
discard """
|
||||
output: '''
|
||||
1
|
||||
yay
|
||||
12
|
||||
'''
|
||||
"""
|
||||
|
||||
|
||||
template withOpenFile(f: untyped, filename: string, mode: FileMode,
|
||||
actions: untyped): untyped =
|
||||
|
||||
Reference in New Issue
Block a user