Fixed test order mistake between expected value and got value
This commit is contained in:
parent
ea72b9dbb2
commit
6f70a7237b
5 changed files with 30 additions and 39 deletions
|
@ -23,8 +23,8 @@ func TestSplit(t *testing.T) {
|
|||
// We check that p2 is a real copy
|
||||
p.Step(*f)
|
||||
p2.Step(*f)
|
||||
require.Equal(t, p, &Pointer{x: 1, y: 0, dx: 1})
|
||||
require.Equal(t, p2, &Pointer{x: 1, y: 0, dx: 1})
|
||||
require.Equal(t, &Pointer{x: 1, y: 0, dx: 1}, p)
|
||||
require.Equal(t, &Pointer{x: 1, y: 0, dx: 1}, p2)
|
||||
}
|
||||
|
||||
func TestStep(t *testing.T) { // Step is thoroughly tested in the field package
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue