修改标点错误 (#494)

This commit is contained in:
xin zhao
2018-05-28 20:37:33 +08:00
committed by 无闻
parent 81285ba80c
commit 7854ee57e0
6 changed files with 10 additions and 10 deletions

View File

@@ -12,9 +12,9 @@ var tests = []struct{ // Test table
out string
}{
{in1, exp1},
{in2, exp2},
{in3, exp3},
{"in1", "exp1"},
{"in2", "exp2"},
{"in3", "exp3"},
...
}
@@ -22,7 +22,7 @@ func TestFunction(t *testing.T) {
for i, tt := range tests {
s := FuncToBeTested(tt.in)
if s != tt.out {
t.Errorf(%d. %q => %q, wanted: %q, i, tt.in, s, tt.out)
t.Errorf("%d. %q => %q, wanted: %q", i, tt.in, s, tt.out)
}
}
}