use doAssert in tests (#16486)
This commit is contained in:
parent
f9a15dbae9
commit
6d442a40a6
78 changed files with 1056 additions and 1056 deletions
|
|
@ -20,16 +20,16 @@ type
|
|||
of true: y*: float
|
||||
|
||||
var x = new(MyObject2)
|
||||
assert x of MyObject2
|
||||
assert x.subobj of MyObject1
|
||||
assert x.more[2] of MyObject1
|
||||
assert x.more[2] of RootObj
|
||||
doAssert x of MyObject2
|
||||
doAssert x.subobj of MyObject1
|
||||
doAssert x.more[2] of MyObject1
|
||||
doAssert x.more[2] of RootObj
|
||||
|
||||
var y: MyObject2
|
||||
assert y of MyObject2
|
||||
assert y.subobj of MyObject1
|
||||
assert y.more[2] of MyObject1
|
||||
assert y.more[2] of RootObj
|
||||
doAssert y of MyObject2
|
||||
doAssert y.subobj of MyObject1
|
||||
doAssert y.more[2] of MyObject1
|
||||
doAssert y.more[2] of RootObj
|
||||
|
||||
echo "true"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue