remove some noises in tests (#16448)

This commit is contained in:
flywind 2020-12-27 07:45:57 -06:00 • committed by GitHub
commit 271f68259b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 140 additions and 181 deletions

View file

@ -1,7 +1,3 @@
discard """
output: "\n[Suite] object basic methods"
"""
import unittest
type Obj = object
@ -10,12 +6,12 @@ type Obj = object
proc makeObj(x: int): Obj =
result.foo = x
suite "object basic methods":
test "it should convert an object to a string":
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)")
test "it should test equality based on fields":
block: # it should test equality based on fields
check(makeObj(1) == makeObj(1))
# bug #10203