closes #5252
This commit is contained in:
parent
9e48999567
commit
7cea0c1765
1 changed files with 19 additions and 0 deletions
|
|
@ -13,6 +13,8 @@ discard """
|
|||
|
||||
[Suite] bug #5784
|
||||
|
||||
[Suite] test suite
|
||||
|
||||
[Suite] test name filtering
|
||||
|
||||
'''
|
||||
|
|
@ -123,6 +125,23 @@ suite "bug #5784":
|
|||
var obj: Obj
|
||||
check obj.isNil or obj.field == 0
|
||||
|
||||
type
|
||||
SomeType = object
|
||||
value: int
|
||||
children: seq[SomeType]
|
||||
|
||||
# bug #5252
|
||||
|
||||
proc `==`(a, b: SomeType): bool =
|
||||
return a.value == b.value
|
||||
|
||||
suite "test suite":
|
||||
test "test":
|
||||
let a = SomeType(value: 10)
|
||||
let b = SomeType(value: 10)
|
||||
|
||||
check(a == b)
|
||||
|
||||
when defined(testing):
|
||||
suite "test name filtering":
|
||||
test "test name":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue