package rules import ( "bytes" "fmt" "testing" ) func TestDocumentationLineMustBeginWithSingleSpace(t *testing.T) { input := []byte(`/// ///The summary. /// /// The foo. /// The bar.`) expected := []byte(`/// /// The summary. /// /// The foo. /// The bar.`) actual := applyDocumentationLinesMustBeginWithSingleSpace(input) if !bytes.Equal(expected, actual) { fmt.Println(string(actual)) t.Fail() } }