Fixed misuses of fmt.Println and t.Error

This commit is contained in:
NI
2022-04-15 18:14:31 +08:00
parent f332365334
commit 5d3eee1b52
2 changed files with 3 additions and 3 deletions

View File

@@ -65,7 +65,7 @@ func TestIntegerSingleByte1(t *testing.T) {
}
if mLen != 1 {
t.Error("Expecting the Integer to be marshalled into %d bytes, got "+
t.Errorf("Expecting the Integer to be marshalled into %d bytes, got "+
"%d instead", 1, mLen)
return
@@ -101,7 +101,7 @@ func TestIntegerSingleByte2(t *testing.T) {
}
if mLen != 1 {
t.Error("Expecting the Integer to be marshalled into %d bytes, got "+
t.Errorf("Expecting the Integer to be marshalled into %d bytes, got "+
"%d instead", 1, mLen)
return