This commit is contained in:
Araq
2018-09-03 10:16:11 +02:00
parent 9e48999567
commit 7cea0c1765

View File

@@ -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":