| 552 | } |
| 553 | |
| 554 | func TestIsType(t *testing.T) { |
| 555 | |
| 556 | mockT := new(testing.T) |
| 557 | |
| 558 | if !IsType(mockT, new(AssertionTesterConformingObject), new(AssertionTesterConformingObject)) { |
| 559 | t.Error("IsType should return true: AssertionTesterConformingObject is the same type as AssertionTesterConformingObject") |
| 560 | } |
| 561 | if IsType(mockT, new(AssertionTesterConformingObject), new(AssertionTesterNonConformingObject)) { |
| 562 | t.Error("IsType should return false: AssertionTesterConformingObject is not the same type as AssertionTesterNonConformingObject") |
| 563 | } |
| 564 | |
| 565 | } |
| 566 | |
| 567 | func TestEqual(t *testing.T) { |
| 568 | type myType string |