]> Sergey Matveev's repositories - go-opus.git/commitdiff
Use new error var names in tests
authorHraban Luyat <hraban@0brg.net>
Thu, 29 Dec 2016 12:25:40 +0000 (12:25 +0000)
committerHraban Luyat <hraban@0brg.net>
Thu, 29 Dec 2016 12:25:40 +0000 (12:25 +0000)
opus_test.go

index ae703a0acb3378c3a0e905f0f8f972f433095ac4..786f901fab0eb594ebaaa5d94091152b9fafd9e4 100644 (file)
@@ -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)
        }
 }