diff --git a/printer/printer_test.go b/printer/printer_test.go index 4c165180..dc8d4bdb 100644 --- a/printer/printer_test.go +++ b/printer/printer_test.go @@ -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) + }) }