Skip to content

Commit

Permalink
Increase coverage for printer
Browse files Browse the repository at this point in the history
  • Loading branch information
goccy committed Dec 22, 2019
1 parent 6995f1d commit 2d43a94
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions printer/printer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,13 @@ alias: *x
t.Logf("%s", p.PrintErrorToken(tokens[12], true))
})
})
t.Run("print error message", func(t *testing.T) {
var p printer.Printer
src := "message"
msg := p.PrintErrorMessage(src, false)
if msg != src {
t.Fatal("unexpected result")
}
p.PrintErrorMessage(src, true)
})
}

0 comments on commit 2d43a94

Please sign in to comment.