Files
Nim/tests/stdlib/tunittesttemplate.nim
ringabout 3d2f0e2c7c make more standard libraries work with nimPreviewSlimSystem (#20343)
* make more standard libraries work with `nimPreviewSlimSystem`

* typo

* part two

* Delete specutils.nim

* fixes more tests

* more fixes

* fixes tests

* fixes three more tests

* add formatfloat import

* fix

* last
2022-09-27 20:06:23 +02:00

26 lines
294 B
Nim

discard """
exitcode: 1
outputsub: '''
tunittesttemplate.nim(20, 12): Check failed: a.b == 2
a.b was 0
[FAILED] 1
'''
"""
# bug #6736
import std/unittest
type
A = object
b: int
template t: untyped =
check(a.b == 2)
suite "1":
test "1":
var a = A(b: 0)
t()