Skip to content

Commit

Permalink
printf error
Browse files Browse the repository at this point in the history
  • Loading branch information
danielweck committed May 30, 2019
1 parent 66d2a9a commit 1cb59cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crypto/pad_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func TestFullPadding(t *testing.T) {
t.Error(err)
}
if n != 8 {
t.Error("should have read 8 bytes, read %d", n)
t.Errorf("should have read 8 bytes, read %d", n)
}

// PaddedReader constructor parameter "insertPadLengthAll" is true,
Expand Down Expand Up @@ -124,7 +124,7 @@ func TestFullPadding_Random(t *testing.T) {
t.Error(err)
}
if n != 8 {
t.Error("should have read 8 bytes, read %d", n)
t.Errorf("should have read 8 bytes, read %d", n)
}

// the PaddedReader constructor parameter "insertPadLengthAll" is false,
Expand Down Expand Up @@ -170,7 +170,7 @@ func TestPaddingInMultipleCalls(t *testing.T) {
}

if n != 3 {
t.Error("should have read 3 bytes, read %d", n)
t.Errorf("should have read 3 bytes, read %d", n)
}

n, err = io.ReadFull(reader, out[:])
Expand All @@ -179,7 +179,7 @@ func TestPaddingInMultipleCalls(t *testing.T) {
}

if n != 3 {
t.Error("should have read 3 bytes, read %d", n)
t.Errorf("should have read 3 bytes, read %d", n)
}

}
Expand Down

0 comments on commit 1cb59cf

Please sign in to comment.