|
|
@@ -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)
|
|
|
}
|
|
|
}
|
|
|
}
|