Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/pkgsrc/pkgtools/pkglint/files/Attic/shtokenizer_test.go,v rcsdiff: /ftp/cvs/cvsroot/pkgsrc/pkgtools/pkglint/files/Attic/shtokenizer_test.go,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.13 retrieving revision 1.14 diff -u -p -r1.13 -r1.14 --- pkgsrc/pkgtools/pkglint/files/Attic/shtokenizer_test.go 2019/01/13 19:55:53 1.13 +++ pkgsrc/pkgtools/pkglint/files/Attic/shtokenizer_test.go 2019/01/26 16:31:33 1.14 @@ -10,12 +10,12 @@ func (s *Suite) Test_ShTokenizer_ShAtom( // testRest ensures that the given string is parsed to the expected // atoms, and returns the remaining text. - testRest := func(s string, expected ...*ShAtom) string { + testRest := func(s string, expectedAtoms ...*ShAtom) string { p := NewShTokenizer(dummyLine, s, false) q := shqPlain - for _, exp := range expected { - c.Check(p.ShAtom(q), deepEquals, exp) - q = exp.Quoting + for _, expectedAtom := range expectedAtoms { + c.Check(p.ShAtom(q), deepEquals, expectedAtom) + q = expectedAtom.Quoting } return p.Rest() }