fix 'go vet' warnings

This commit is contained in:
Tim Hockin
2014-11-20 20:42:48 +08:00
parent ea960711ff
commit 95a9098311
19 changed files with 32 additions and 34 deletions

View File

@@ -130,7 +130,7 @@ func TestGetFloat(t *testing.T) {
for _, test := range tests {
val := GetFloatResource(test.res, test.name, test.def)
if val != test.expected {
t.Errorf("expected: %d found %d", test.expected, val)
t.Errorf("expected: %f found %f", test.expected, val)
}
}
}
@@ -163,7 +163,7 @@ func TestGetString(t *testing.T) {
for _, test := range tests {
val := GetStringResource(test.res, test.name, test.def)
if val != test.expected {
t.Errorf("expected: %d found %d", test.expected, val)
t.Errorf("expected: %s found %s", test.expected, val)
}
}
}