1
0
mirror of https://github.com/drone/drone-cli.git synced 2026-01-17 08:21:34 +01:00
drone-cli/vendor/github.com/codegangsta/cli/helpers_test.go
2015-10-24 17:06:46 -07:00

20 lines
423 B
Go

package cli
import (
"reflect"
"testing"
)
/* Test Helpers */
func expect(t *testing.T, a interface{}, b interface{}) {
if a != b {
t.Errorf("Expected %v (type %v) - Got %v (type %v)", b, reflect.TypeOf(b), a, reflect.TypeOf(a))
}
}
func refute(t *testing.T, a interface{}, b interface{}) {
if a == b {
t.Errorf("Did not expect %v (type %v) - Got %v (type %v)", b, reflect.TypeOf(b), a, reflect.TypeOf(a))
}
}