parent
78b15de304
commit
f3117d350e
2 changed files with 26 additions and 1 deletions
25
tests/stdlib/tunittesttemplate.nim
Normal file
25
tests/stdlib/tunittesttemplate.nim
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
discard """
|
||||
exitcode: 1
|
||||
outputsub: '''
|
||||
tunittesttemplate.nim(20, 12): Check failed: a.b ==
|
||||
2
|
||||
a.b was 0
|
||||
[FAILED] 1
|
||||
'''
|
||||
"""
|
||||
|
||||
# bug #6736
|
||||
|
||||
import unittest
|
||||
|
||||
type
|
||||
A = object
|
||||
b: int
|
||||
|
||||
template t: untyped =
|
||||
check(a.b == 2)
|
||||
|
||||
suite "1":
|
||||
test "1":
|
||||
var a = A(b: 0)
|
||||
t()
|
||||
Loading…
Add table
Add a link
Reference in a new issue