diff options
author | Bung <crc32@qq.com> | 2022-10-02 12:42:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-02 06:42:41 +0200 |
commit | 0769b160c5e1e3f17a87c4a50c0c8d4ba076858f (patch) | |
tree | 5db5e162017cd94fc258fbedc30311abf9a5c5ec /tests/objects/tobject.nim | |
parent | 1737bb9f9e3fffeceaac480f359b4d90ba07a3e1 (diff) | |
download | Nim-0769b160c5e1e3f17a87c4a50c0c8d4ba076858f.tar.gz |
less test time costs (#20479)
Diffstat (limited to 'tests/objects/tobject.nim')
-rw-r--r-- | tests/objects/tobject.nim | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/objects/tobject.nim b/tests/objects/tobject.nim index 543a86376..207cda0bc 100644 --- a/tests/objects/tobject.nim +++ b/tests/objects/tobject.nim @@ -1,4 +1,3 @@ -import unittest type Obj = object foo: int @@ -10,9 +9,9 @@ block: # object basic methods block: # it should convert an object to a string var obj = makeObj(1) # Should be "obj: (foo: 1)" or similar. - check($obj == "(foo: 1)") + doAssert($obj == "(foo: 1)") block: # it should test equality based on fields - check(makeObj(1) == makeObj(1)) + doAssert(makeObj(1) == makeObj(1)) # bug #10203 |