@@ -140,8 +140,8 @@ func TestLico(t *testing.T) {
140
140
{makeLico (1 , 0 ), ":1" , 1 , 0 },
141
141
{makeLico (1 , 1 ), ":1:1" , 1 , 1 },
142
142
{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
145
145
{makeLico (1 , colMax ), ":1" , 1 , colMax },
146
146
{makeLico (1 , colMax + 1 ), ":1" , 1 , 0 }, // column too large
147
147
{makeLico (lineMax + 1 , colMax + 1 ), fmt .Sprintf (":%d" , lineMax ), lineMax , 0 },
@@ -170,8 +170,8 @@ func TestIsStmt(t *testing.T) {
170
170
{makeLico (1 , 1 ), ":1:1" + def , 1 , 1 },
171
171
{makeLico (1 , 1 ).withIsStmt (), ":1:1" + is , 1 , 1 },
172
172
{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
175
175
{makeLico (1 , colMax ), ":1" + def , 1 , colMax },
176
176
{makeLico (1 , colMax + 1 ), ":1" + def , 1 , 0 }, // column too large
177
177
{makeLico (lineMax + 1 , colMax + 1 ), fmt .Sprintf (":%d" , lineMax ) + def , lineMax , 0 },
@@ -214,9 +214,9 @@ func TestLogue(t *testing.T) {
214
214
{makeLico (1 , 1 ).withXlogue (PosPrologueEnd ), ":1:1" + defs + pro , 1 , 1 },
215
215
{makeLico (1 , 1 ).withXlogue (PosEpilogueBegin ), ":1:1" + defs + epi , 1 , 1 },
216
216
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 },
220
220
} {
221
221
x := test .x
222
222
if got := formatstr ("" , x .Line (), x .Col (), true ) + fmt .Sprintf (":%d:%d" , x .IsStmt (), x .Xlogue ()); got != test .string {
0 commit comments