Skip to content

Commit

Permalink
chore: add failure test
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Musat committed Dec 12, 2022
1 parent 77d1954 commit 08ecce3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions internal/graphics/matrix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,11 @@ func TestMatrix_RayCastVertical_reverse(t *testing.T) {
a.NoError(err)
a.Equal(false, hit)
}

func TestMatrix_RayCastVertical_Fail(t *testing.T) {
a := require.New(t)
matrix := NewMatrix(10, 10)

_, err := matrix.RayCastVertical(vector.Vec(0, 10), map[string]func(string) bool{}, 2)
a.Error(err)
}

0 comments on commit 08ecce3

Please sign in to comment.