Sha256: 842fc9e3b74252cb02cf33a4065558ab62e355c1e006acdf6f288f3f9fd75363

Contents?: true

Size: 778 Bytes

Versions: 13

Compression:

Stored size: 778 Bytes

Contents

require_relative 'helper'


class TestException < Test::Unit::TestCase

  include Rucy::Tester

  def test_raise_ruby_exception()
    assert_raise(StandardError) {raise_ruby_exception}
  end

  def test_raise_in_eval()
    assert_raise(RuntimeError) {raise_in_eval}
  end

  def test_throw_std_exception()
    assert_raise(Rucy::NativeError) {throw_std_exception}
  end

  def test_throw_std_runtime_error()
    assert_raise(Rucy::NativeError) {throw_std_runtime_error}
  end

  def test_throw_custom_exception()
    assert_raise(Rucy::NativeError) {throw_custom_exception}
  end

  def test_throw_std_string()
    assert_raise(Rucy::NativeError) {throw_std_string}
  end

  def test_throw_cstring()
    assert_raise(Rucy::NativeError) {throw_cstring}
  end

end# TestException

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rucy-0.3 test/test_exception.rb
rucy-0.2.1 test/test_exception.rb
rucy-0.2 test/test_exception.rb
rucy-0.1.44 test/test_exception.rb
rucy-0.1.43 test/test_exception.rb
rucy-0.1.42 test/test_exception.rb
rucy-0.1.41 test/test_exception.rb
rucy-0.1.40 test/test_exception.rb
rucy-0.1.39 test/test_exception.rb
rucy-0.1.38 test/test_exception.rb
rucy-0.1.37 test/test_exception.rb
rucy-0.1.36 test/test_exception.rb
rucy-0.1.35 test/test_exception.rb