diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 02:50:01 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 02:50:01 +0000 |
commit | 91275eb478ceb58083426099b6da3f4c7e189f19 (patch) | |
tree | 260f7d2fa77408b38c5cea96b320b9b0b6713ff2 /debian/vendor-h2o/deps/mruby-errno/test | |
parent | Merging upstream version 1.9.4. (diff) | |
download | dnsdist-91275eb478ceb58083426099b6da3f4c7e189f19.tar.xz dnsdist-91275eb478ceb58083426099b6da3f4c7e189f19.zip |
Merging debian version 1.9.4-1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/vendor-h2o/deps/mruby-errno/test')
-rw-r--r-- | debian/vendor-h2o/deps/mruby-errno/test/errno.rb | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/debian/vendor-h2o/deps/mruby-errno/test/errno.rb b/debian/vendor-h2o/deps/mruby-errno/test/errno.rb deleted file mode 100644 index 7903115..0000000 --- a/debian/vendor-h2o/deps/mruby-errno/test/errno.rb +++ /dev/null @@ -1,60 +0,0 @@ -assert('Errno') do - Errno.class == Module -end - -assert('SystemCallError') do - SystemCallError.class == Class -end - -assert('SystemCallError superclass') do - SystemCallError.superclass == StandardError -end - -assert('SystemCallError#initialize') do - SystemCallError.new("a").message == "unknown error - a" and - SystemCallError.new("a", 12345).message == "Unknown error: 12345 - a" and - SystemCallError.new(12345).message == "Unknown error: 12345" -end - -assert('SystemCallError#errno') do - assert_equal 1, SystemCallError.new("a", 1).errno - assert_equal 1, SystemCallError.new(1).errno - assert_equal 12345, SystemCallError.new("a", 12345).errno - assert_equal 23456, SystemCallError.new(23456).errno -end - -assert('SystemCallError#inspect') do - SystemCallError.new("a").inspect == "SystemCallError: unknown error - a" - end - -assert('Errno::NOERROR') do - Errno::NOERROR.class == Class -end - -# Is there any platform does not have EPERM? -assert('Errno::EPERM') do - Errno::EPERM.class == Class -end - -assert('Errno::EPERM superclass') do - Errno::EPERM.superclass == SystemCallError -end - -assert('Errno::EPERM::Errno') do - Errno::EPERM::Errno.is_a? Fixnum -end - -assert('Errno::EPERM#message') do - msg = Errno::EPERM.new.message - Errno::EPERM.new("a").message == "#{msg} - a" -end - -assert('Errno::EPERM#inspect 1') do - msg = Errno::EPERM.new.message - Errno::EPERM.new.inspect == "Errno::EPERM: #{msg}" -end - -assert('Errno::EPERM#inspect 2') do - msg = Errno::EPERM.new.message - Errno::EPERM.new("a").inspect == "Errno::EPERM: #{msg} - a" -end |