2015-07-20 19:18:25 +00:00
|
|
|
package cli
|
2013-07-20 22:50:13 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"reflect"
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
/* Test Helpers */
|
|
|
|
func expect(t *testing.T, a interface{}, b interface{}) {
|
2015-10-27 04:45:28 +00:00
|
|
|
if !reflect.DeepEqual(a, b) {
|
2013-07-20 22:50:13 +00:00
|
|
|
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{}) {
|
2015-10-27 04:45:28 +00:00
|
|
|
if reflect.DeepEqual(a, b) {
|
2013-07-20 22:50:13 +00:00
|
|
|
t.Errorf("Did not expect %v (type %v) - Got %v (type %v)", b, reflect.TypeOf(b), a, reflect.TypeOf(a))
|
|
|
|
}
|
|
|
|
}
|