tidy up, add docs
This commit is contained in:
12
util_test.go
12
util_test.go
@@ -78,18 +78,18 @@ func Test_stripComment(t *testing.T) {
|
||||
},
|
||||
{
|
||||
name: "comment",
|
||||
in: "text#some comment",
|
||||
want: "text",
|
||||
in: "text#some",
|
||||
want: "text#some",
|
||||
},
|
||||
{
|
||||
name: "comment",
|
||||
in: "text #some comment",
|
||||
want: "text ",
|
||||
in: "text #some",
|
||||
want: "text #some",
|
||||
},
|
||||
{
|
||||
name: "comment",
|
||||
in: " text #some comment",
|
||||
want: " text ",
|
||||
in: " text #some ",
|
||||
want: " text #some ",
|
||||
},
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user