diff options
Diffstat (limited to 'pkgtools/pkglint/files/util_test.go')
-rw-r--r-- | pkgtools/pkglint/files/util_test.go | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/pkgtools/pkglint/files/util_test.go b/pkgtools/pkglint/files/util_test.go index eb2e1b4f460..4530a99aa88 100644 --- a/pkgtools/pkglint/files/util_test.go +++ b/pkgtools/pkglint/files/util_test.go @@ -227,9 +227,9 @@ func (s *Suite) Test_alignWith(c *check.C) { // At least one tab is _always_ added. test("", "", "\t") - test("VAR=", "1234567", "VAR=\t") + test("VAR=", "1234567", "VAR= ") test("VAR=", "12345678", "VAR=\t") - test("VAR=", "123456789", "VAR=\t\t") + test("VAR=", "123456789", "VAR=\t ") // At least one tab is added in any case, // even if the other string is shorter. @@ -456,14 +456,6 @@ func (s *Suite) Test_containsVarRef(c *check.C) { test("$$VAR", false) // An escaped dollar character. } -func (s *Suite) Test_hasAlnumPrefix(c *check.C) { - t := s.Init(c) - - t.CheckEquals(hasAlnumPrefix(""), false) - t.CheckEquals(hasAlnumPrefix("A"), true) - t.CheckEquals(hasAlnumPrefix(","), false) -} - func (s *Suite) Test_Once(c *check.C) { t := s.Init(c) |