use doAssert in tests (#16486)
This commit is contained in:
parent
f9a15dbae9
commit
6d442a40a6
78 changed files with 1056 additions and 1056 deletions
|
|
@ -23,6 +23,6 @@ static:
|
|||
sameBug(objs)
|
||||
# sameBug(objs)
|
||||
echo objs[0].field
|
||||
assert(objs[0].field == "hello") # fails, because (objs[0].field == "hello bug") - mutated!
|
||||
doAssert(objs[0].field == "hello") # fails, because (objs[0].field == "hello bug") - mutated!
|
||||
|
||||
echo "success"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue