(t *testing.T)
| 560 | } |
| 561 | |
| 562 | func TestSame(t *testing.T) { |
| 563 | |
| 564 | mockT := new(testing.T) |
| 565 | |
| 566 | if Same(mockT, ptr(1), ptr(1)) { |
| 567 | t.Error("Same should return false") |
| 568 | } |
| 569 | if Same(mockT, 1, 1) { |
| 570 | t.Error("Same should return false") |
| 571 | } |
| 572 | p := ptr(2) |
| 573 | if Same(mockT, p, *p) { |
| 574 | t.Error("Same should return false") |
| 575 | } |
| 576 | if !Same(mockT, p, p) { |
| 577 | t.Error("Same should return true") |
| 578 | } |
| 579 | } |
| 580 | |
| 581 | func TestNotSame(t *testing.T) { |
| 582 |