Skip to content

Commit

Permalink
revisit ignored errors
Browse files Browse the repository at this point in the history
  • Loading branch information
serejja committed Mar 9, 2016
1 parent 4a248a4 commit 62f5a1c
Show file tree
Hide file tree
Showing 13 changed files with 277 additions and 139 deletions.
2 changes: 1 addition & 1 deletion binary_decoder_positioning_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func TestPositioning(t *testing.T) {
position := bd.Tell()
value, err := bd.ReadBytes()
if err != nil {
t.Fatal("Unexpected error during decoding bytes: %v", err)
t.Fatal(err)
}
for i := 0; i < len(value); i++ {
if value[i] != bytes[position+int64(i)+int64(1)] {
Expand Down
2 changes: 1 addition & 1 deletion binary_decoder_standalone_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func TestBytes(t *testing.T) {
bytes := goodBytes[index]
actual, err := NewBinaryDecoder(bytes).ReadBytes()
if err != nil {
t.Fatal("Unexpected error during decoding bytes: %v", err)
t.Fatal(err)
}
for i := 0; i < len(actual); i++ {
if actual[i] != bytes[i+1] {
Expand Down
Loading

0 comments on commit 62f5a1c

Please sign in to comment.