opus_test.go | 4 ++-- diff --git a/opus_test.go b/opus_test.go index ae703a0acb3378c3a0e905f0f8f972f433095ac4..786f901fab0eb594ebaaa5d94091152b9fafd9e4 100644 --- a/opus_test.go +++ b/opus_test.go @@ -19,9 +19,9 @@ func TestOpusErrstr(t *testing.T) { // I scooped this -1 up from opus_defines.h, it's OPUS_BAD_ARG. Not pretty, // but it's better than not testing at all. Again, accessing #defines from // CGO is not possible. - if ERR_OPUS_BAD_ARG.Error() != "opus: invalid argument" { + if ErrBadArg.Error() != "opus: invalid argument" { t.Errorf("Expected \"invalid argument\" error message for error code %d: %v", - ERR_OPUS_BAD_ARG, ERR_OPUS_BAD_ARG) + ErrBadArg, ErrBadArg) } }