Improved code quality
This commit is contained in:
parent
3ff7ac9a08
commit
acec282709
16 changed files with 128 additions and 69 deletions
6
True.go
6
True.go
|
@ -1,13 +1,11 @@
|
|||
package assert
|
||||
|
||||
import "testing"
|
||||
|
||||
// True asserts that the given parameter is true.
|
||||
func True(t testing.TB, a bool) {
|
||||
func True(t test, a bool) {
|
||||
Equal(t, a, true)
|
||||
}
|
||||
|
||||
// False asserts that the given parameter is false.
|
||||
func False(t testing.TB, a bool) {
|
||||
func False(t test, a bool) {
|
||||
Equal(t, a, false)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue