@@ -140,8 +140,8 @@ func TestLico(t *testing.T) {
140140 {makeLico (1 , 0 ), ":1" , 1 , 0 },
141141 {makeLico (1 , 1 ), ":1:1" , 1 , 1 },
142142 {makeLico (2 , 3 ), ":2:3" , 2 , 3 },
143- {makeLico (lineMax , 1 ), fmt .Sprintf (":%d:1 " , lineMax ), lineMax , 1 },
144- {makeLico (lineMax + 1 , 1 ), fmt .Sprintf (":%d:1 " , lineMax ), lineMax , 1 }, // line too large, stick with max. line
143+ {makeLico (lineMax , 1 ), fmt .Sprintf (":%d" , lineMax ), lineMax , 1 },
144+ {makeLico (lineMax + 1 , 1 ), fmt .Sprintf (":%d" , lineMax ), lineMax , 1 }, // line too large, stick with max. line
145145 {makeLico (1 , colMax ), ":1" , 1 , colMax },
146146 {makeLico (1 , colMax + 1 ), ":1" , 1 , 0 }, // column too large
147147 {makeLico (lineMax + 1 , colMax + 1 ), fmt .Sprintf (":%d" , lineMax ), lineMax , 0 },
@@ -170,8 +170,8 @@ func TestIsStmt(t *testing.T) {
170170 {makeLico (1 , 1 ), ":1:1" + def , 1 , 1 },
171171 {makeLico (1 , 1 ).withIsStmt (), ":1:1" + is , 1 , 1 },
172172 {makeLico (1 , 1 ).withNotStmt (), ":1:1" + not , 1 , 1 },
173- {makeLico (lineMax , 1 ), fmt .Sprintf (":%d:1 " , lineMax ) + def , lineMax , 1 },
174- {makeLico (lineMax + 1 , 1 ), fmt .Sprintf (":%d:1 " , lineMax ) + def , lineMax , 1 }, // line too large, stick with max. line
173+ {makeLico (lineMax , 1 ), fmt .Sprintf (":%d" , lineMax ) + def , lineMax , 1 },
174+ {makeLico (lineMax + 1 , 1 ), fmt .Sprintf (":%d" , lineMax ) + def , lineMax , 1 }, // line too large, stick with max. line
175175 {makeLico (1 , colMax ), ":1" + def , 1 , colMax },
176176 {makeLico (1 , colMax + 1 ), ":1" + def , 1 , 0 }, // column too large
177177 {makeLico (lineMax + 1 , colMax + 1 ), fmt .Sprintf (":%d" , lineMax ) + def , lineMax , 0 },
@@ -214,9 +214,9 @@ func TestLogue(t *testing.T) {
214214 {makeLico (1 , 1 ).withXlogue (PosPrologueEnd ), ":1:1" + defs + pro , 1 , 1 },
215215 {makeLico (1 , 1 ).withXlogue (PosEpilogueBegin ), ":1:1" + defs + epi , 1 , 1 },
216216
217- {makeLico (lineMax , 1 ).withXlogue (PosDefaultLogue ), fmt .Sprintf (":%d:1 " , lineMax ) + defs + defp , lineMax , 1 },
218- {makeLico (lineMax , 1 ).withXlogue (PosPrologueEnd ), fmt .Sprintf (":%d:1 " , lineMax ) + defs + pro , lineMax , 1 },
219- {makeLico (lineMax , 1 ).withXlogue (PosEpilogueBegin ), fmt .Sprintf (":%d:1 " , lineMax ) + defs + epi , lineMax , 1 },
217+ {makeLico (lineMax , 1 ).withXlogue (PosDefaultLogue ), fmt .Sprintf (":%d" , lineMax ) + defs + defp , lineMax , 1 },
218+ {makeLico (lineMax , 1 ).withXlogue (PosPrologueEnd ), fmt .Sprintf (":%d" , lineMax ) + defs + pro , lineMax , 1 },
219+ {makeLico (lineMax , 1 ).withXlogue (PosEpilogueBegin ), fmt .Sprintf (":%d" , lineMax ) + defs + epi , lineMax , 1 },
220220 } {
221221 x := test .x
222222 if got := formatstr ("" , x .Line (), x .Col (), true ) + fmt .Sprintf (":%d:%d" , x .IsStmt (), x .Xlogue ()); got != test .string {
0 commit comments