From: Hraban Luyat Date: Thu, 29 Dec 2016 12:25:40 +0000 (+0000) Subject: Use new error var names in tests X-Git-Tag: v2.0.0~40^2~1 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=9f1efc5ce0d91ffa6a60b38fe2a925feb4af43a3;p=go-opus.git Use new error var names in tests --- diff --git a/opus_test.go b/opus_test.go index ae703a0..786f901 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) } }