Skip to content
This repository has been archived by the owner on Jun 5, 2021. It is now read-only.

Commit

Permalink
message: add equal check to TestDecode
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Jun 23, 2018
1 parent a3f84b6 commit a7e2452
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -944,4 +944,7 @@ func TestDecode(t *testing.T) {
if err := Decode(m.Raw, mDecoded); err != nil {
t.Errorf("unexpected error: %v", err)
}
if !mDecoded.Equal(m) {
t.Error("decoded result is not equal to encoded message")
}
}

0 comments on commit a7e2452

Please sign in to comment.