11 lines
184 B
Go
11 lines
184 B
Go
package analysis
|
|
|
|
import "testing"
|
|
|
|
func TestSanitizeLine(t *testing.T) {
|
|
got := sanitizeLine(" error\nwith\rspaces ")
|
|
if got != "error with spaces" {
|
|
t.Fatalf("got %q", got)
|
|
}
|
|
}
|