Debian Codegraph @

pkg/input/wordlist_test.go

raw symbols SCIP
1 package input
2
3 import (
4 "testing"
5 )
6
7 func TestStripCommentsIgnoresCommentLines(t *testing.T) {
8 text, _ := stripComments("# text")
9
10 if text != "" {
11 t.Errorf("Returned text was not a blank string")
12 }
13 }
14
15 func TestStripCommentsStripsCommentAfterText(t *testing.T) {
16 text, _ := stripComments("text # comment")
17
18 if text != "text" {
19 t.Errorf("Comment was not stripped or pre-comment text was not returned")
20 }
21 }