Added basic assert functions
This commit is contained in:
parent
b73c6e6f90
commit
2b28627e58
6 changed files with 224 additions and 0 deletions
13
True.go
Normal file
13
True.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
package assert
|
||||
|
||||
import "testing"
|
||||
|
||||
// True asserts that the given parameter is true.
|
||||
func True(t testing.TB, a bool) {
|
||||
Equal(t, a, true)
|
||||
}
|
||||
|
||||
// False asserts that the given parameter is false.
|
||||
func False(t testing.TB, a bool) {
|
||||
Equal(t, a, false)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue