tan_test.go 424 B

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