Skip to content

Commit

Permalink
update freetype test
Browse files Browse the repository at this point in the history
  • Loading branch information
lz1998 committed Jul 20, 2021
1 parent 311d87f commit 4396308
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/freetype_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ func TestFreeTypePutText(t *testing.T) {

img := gocv.NewMatWithSize(150, 500, gocv.MatTypeCV8UC3)
if img.Empty() {
t.Error("Invalid Mat in IMRead")
t.Error("Invalid Mat")
}
defer img.Close()

pt := image.Pt(80, 80)
ft.PutText(&img, "Testing", pt, 60, color.RGBA{255, 255, 255, 0}, 2, 8, true)
ft.PutText(&img, "Testing", pt, 60, color.RGBA{R: 255, G: 255, B: 255}, 2, 8, true)

if img.Empty() {
t.Error("Error in PutText test")
Expand Down

0 comments on commit 4396308

Please sign in to comment.