diff options
Diffstat (limited to 'file_test.go')
| -rw-r--r-- | file_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/file_test.go b/file_test.go index 20110ca..878789c 100644 --- a/file_test.go +++ b/file_test.go @@ -26,7 +26,7 @@ func TestFile_detectComment(t *testing.T) { topLines: [][]byte{ []byte(`#!/bin/sh`), }, - commentPrefix: `# `, + commentPrefix: `#`, hasSheBang: true, }, }, { @@ -35,7 +35,7 @@ func TestFile_detectComment(t *testing.T) { }, expFile: file{ path: `test.rb`, - commentPrefix: `# `, + commentPrefix: `#`, }, }, { f: file{ @@ -43,7 +43,7 @@ func TestFile_detectComment(t *testing.T) { }, expFile: file{ path: `test.c`, - commentPrefix: `// `, + commentPrefix: `//`, }, }, { f: file{ @@ -51,7 +51,7 @@ func TestFile_detectComment(t *testing.T) { }, expFile: file{ path: `test.go`, - commentPrefix: `// `, + commentPrefix: `//`, }, }, { f: file{ @@ -59,8 +59,8 @@ func TestFile_detectComment(t *testing.T) { }, expFile: file{ path: `test.html`, - commentPrefix: `<!-- `, - commentSuffix: ` -->`, + commentPrefix: `<!--`, + commentSuffix: `-->`, }, }} cfg := &config{} |
