2015-12-09 17:15:46 +00:00
|
|
|
package altsrc
|
2015-12-06 23:43:18 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"reflect"
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func expect(t *testing.T, a interface{}, b interface{}) {
|
|
|
|
if !reflect.DeepEqual(b, a) {
|
|
|
|
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))
|
|
|
|
}
|
|
|
|
}
|