Skip to content
This repository has been archived by the owner on May 29, 2018. It is now read-only.

Commit

Permalink
Merge pull request #3 from ararslan/aa/test_err
Browse files Browse the repository at this point in the history
Add a test for Base.showerror [av skip]
  • Loading branch information
ararslan committed Sep 9, 2016
2 parents 8b0f045 + 4670ee4 commit aad8528
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ branches:
- master
- /release-.*/

skip_commits:
message: /\[av skip\]/

notifications:
- provider: Email
on_build_success: false
Expand Down
10 changes: 10 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,14 @@ using Base.Test

@test ZStd.check_zstd_error(UInt64(0)) == UInt64(0)
@test_throws ZStd.ZStdError ZStd.check_zstd_error(typemax(UInt64))

let
err = try
ZStd.check_zstd_error(typemax(UInt64))
catch ex
ex
end
err_txt = sprint(showerror, err)
@test startswith(err_txt, "ZStd: Error (generic)")
end
end

0 comments on commit aad8528

Please sign in to comment.