| 35 | } |
| 36 | |
| 37 | func TestEqualWrapper(t *testing.T) { |
| 38 | t.Parallel() |
| 39 | |
| 40 | assert := New(new(testing.T)) |
| 41 | |
| 42 | if !assert.Equal("Hello World", "Hello World") { |
| 43 | t.Error("Equal should return true") |
| 44 | } |
| 45 | if !assert.Equal(123, 123) { |
| 46 | t.Error("Equal should return true") |
| 47 | } |
| 48 | if !assert.Equal(123.5, 123.5) { |
| 49 | t.Error("Equal should return true") |
| 50 | } |
| 51 | if !assert.Equal([]byte("Hello World"), []byte("Hello World")) { |
| 52 | t.Error("Equal should return true") |
| 53 | } |
| 54 | if !assert.Equal(nil, nil) { |
| 55 | t.Error("Equal should return true") |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | func TestEqualValuesWrapper(t *testing.T) { |
| 60 | t.Parallel() |