Added basic assert functions

This commit is contained in:
Eduard Urbach 2023-07-05 15:46:19 +02:00
parent b73c6e6f90
commit 2b28627e58
Signed by: eduard
GPG key ID: 49226B848C78F6C8
6 changed files with 224 additions and 0 deletions

13
True.go Normal file
View 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)
}