1
0
mirror of https://github.com/golang/go synced 2024-11-25 00:07:56 -07:00

fix: one line it too lang

This commit is contained in:
oldme 2024-04-17 11:24:58 +08:00
parent db9074f45d
commit f4d50977b1

View File

@ -63,23 +63,30 @@ var commentsRaw = []struct {
{[]string{"//", "//", "// foo"}, "//\n//\n// foo\n"},
{[]string{"// foo bar "}, "// foo bar \n"},
{[]string{"// foo", "// bar"}, "// foo\n// bar\n"},
{[]string{"// foo", "//", "//", "//", "// bar"}, "// foo\n//\n//\n//\n// bar\n"},
{[]string{"// foo", "//", "//", "//", "// bar"},
"// foo\n//\n//\n//\n// bar\n"},
{[]string{"// foo", "/* bar */"}, "// foo\n/* bar */\n"},
{[]string{"//", "//", "//", "// foo", "//", "//", "//"}, "//\n//\n//\n// foo\n//\n//\n//\n"},
{[]string{"//", "//", "//", "// foo", "//", "//", "//"},
"//\n//\n//\n// foo\n//\n//\n//\n"},
{[]string{"/**/"}, "/**/\n"},
{[]string{"/* */"}, "/* */\n"},
{[]string{"/**/", "/**/", "/* */"}, "/**/\n/**/\n/* */\n"},
{[]string{"/**/", "/**/", "/* */"},
"/**/\n/**/\n/* */\n"},
{[]string{"/* Foo */"}, "/* Foo */\n"},
{[]string{"/* Foo Bar */"}, "/* Foo Bar */\n"},
{[]string{"/* Foo*/", "/* Bar*/"}, "/* Foo*/\n/* Bar*/\n"},
{[]string{"/* Foo*/", "/**/", "/**/", "/**/", "// Bar"}, "/* Foo*/\n/**/\n/**/\n/**/\n// Bar\n"},
{[]string{"/* Foo*/", "/*\n*/", "//", "/*\n*/", "// Bar"}, "/* Foo*/\n/*\n*/\n//\n/*\n*/\n// Bar\n"},
{[]string{"/* Foo*/", "/**/", "/**/", "/**/", "// Bar"},
"/* Foo*/\n/**/\n/**/\n/**/\n// Bar\n"},
{[]string{"/* Foo*/", "/*\n*/", "//", "/*\n*/", "// Bar"},
"/* Foo*/\n/*\n*/\n//\n/*\n*/\n// Bar\n"},
{[]string{"/* Foo*/", "// Bar"}, "/* Foo*/\n// Bar\n"},
{[]string{"/* Foo\n Bar*/"}, "/* Foo\n Bar*/\n"},
{[]string{"// foo", "//go:noinline", "// bar", "//:baz"}, "// foo\n//go:noinline\n// bar\n//:baz\n"},
{[]string{"// foo", "//lint123:ignore", "// bar"}, "// foo\n//lint123:ignore\n// bar\n"},
{[]string{"// foo", "//go:noinline", "// bar", "//:baz"},
"// foo\n//go:noinline\n// bar\n//:baz\n"},
{[]string{"// foo", "//lint123:ignore", "// bar"},
"// foo\n//lint123:ignore\n// bar\n"},
}
func TestCommentRaw(t *testing.T) {