From 05afd9622b104cfdf9c393bb754583e4bc2ff4c6 Mon Sep 17 00:00:00 2001 From: Brian Tiger Chow Date: Wed, 21 Jan 2015 23:21:35 -0800 Subject: [PATCH] add False method --- thirdparty/assert/assert.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/thirdparty/assert/assert.go b/thirdparty/assert/assert.go index 9ab1a6a87..f737d191e 100644 --- a/thirdparty/assert/assert.go +++ b/thirdparty/assert/assert.go @@ -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)