Improved code quality
This commit is contained in:
parent
3ff7ac9a08
commit
acec282709
16 changed files with 128 additions and 69 deletions
|
@ -35,3 +35,11 @@ func TestNotNil(t *testing.T) {
|
|||
assert.NotNil(t, make(chan byte))
|
||||
assert.NotNil(t, TestNotNil)
|
||||
}
|
||||
|
||||
func TestFailNil(t *testing.T) {
|
||||
assert.Nil(fail(t), 0)
|
||||
}
|
||||
|
||||
func TestFailNotNil(t *testing.T) {
|
||||
assert.NotNil(fail(t), nil)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue