Skip to content

Commit

Permalink
Add feedback in tests "to isReachable"
Browse files Browse the repository at this point in the history
  • Loading branch information
eloylp committed Nov 17, 2019
1 parent 9db6b43 commit 0efad14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"fmt"
"github.com/stretchr/testify/assert"
"testing"
)
Expand Down Expand Up @@ -67,6 +68,6 @@ func TestIsReachableNeighbour(t *testing.T) {

for _, s := range samples() {
result := IsReachableNeighbour(b, s.X, s.Y, s.OX, s.OY)
assert.Equal(t, s.Expected, result)
assert.Equal(t, s.Expected, result, fmt.Sprintf("Failed case: %s", s.Case))
}
}

0 comments on commit 0efad14

Please sign in to comment.