8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae82a90 commit 39eec09Copy full SHA for 39eec09
test/bzip2_errors_test.rb
@@ -0,0 +1,35 @@
1
+# encoding: utf-8
2
+
3
+require 'test_helper'
4
5
+class Bzip2ErrorsTest < MiniTest::Test
6
+ def test_bzip2_error
7
+ raise ::Zip::Bzip2::Error
8
+ rescue ::Zip::Bzip2::Error
9
+ end
10
11
+ def test_bzip2_mem_error
12
+ raise ::Zip::Bzip2::MemError
13
14
15
16
+ def test_bzip2_data_error
17
+ raise ::Zip::Bzip2::DataError
18
19
20
21
+ def test_bzip2_magic_data_error
22
+ raise ::Zip::Bzip2::MagicDataError
23
24
25
26
+ def test_bzip2_config_error
27
+ raise ::Zip::Bzip2::ConfigError
28
29
30
31
+ def test_bzip2_unexpected_error
32
+ raise ::Zip::Bzip2::UnexpectedError, -999
33
34
35
+end
0 commit comments