@cryptotaxi247 / kubo / commits / 05afd9622

add False method

Brian Tiger Chow committed Jan 21, 2015 at 23:21 UTC 05afd9622b104cfdf9c393bb754583e4bc2ff4c6
1 file changed +4
thirdparty/assert/assert.go
+4
@@ -14,6 +14,10 @@ func True(v bool, t *testing.T, msgs ...string) {
14 }
15 }
16
17 +func False(v bool, t *testing.T, msgs ...string) {
18 + True(!v, t, msgs...)
19 +}
20 +
21 func Err(err error, t *testing.T, msgs ...string) {
22 if err == nil {
23 t.Fatal(msgs, "error:", err)