github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/libraries/cli/altsrc/helpers_test.go (about)

     1  package altsrc
     2  
     3  import (
     4  	"reflect"
     5  	"testing"
     6  )
     7  
     8  func expect(t *testing.T, a interface{}, b interface{}) {
     9  	if !reflect.DeepEqual(b, a) {
    10  		t.Errorf("Expected %#v (type %v) - Got %#v (type %v)", b, reflect.TypeOf(b), a, reflect.TypeOf(a))
    11  	}
    12  }
    13  
    14  func refute(t *testing.T, a interface{}, b interface{}) {
    15  	if a == b {
    16  		t.Errorf("Did not expect %v (type %v) - Got %v (type %v)", b, reflect.TypeOf(b), a, reflect.TypeOf(a))
    17  	}
    18  }