add False method

This commit is contained in:
Brian Tiger Chow 2015-01-21 23:21:35 -08:00
parent c4f9a92e55
commit 05afd9622b

View File

@ -14,6 +14,10 @@ func True(v bool, t *testing.T, msgs ...string) {
}
}
func False(v bool, t *testing.T, msgs ...string) {
True(!v, t, msgs...)
}
func Err(err error, t *testing.T, msgs ...string) {
if err == nil {
t.Fatal(msgs, "error:", err)