Sha256: 48587d922d5b1f4cde7ce88a89027af8b9a6ef06ecc3e0ab70a875df8272c962
Contents?: true
Size: 613 Bytes
Versions: 10
Compression:
Stored size: 613 Bytes
Contents
#!/usr/bin/env ruby require File.expand_path("helper", File.dirname(__FILE__)) # Test catchpoint in C ruby_debug extension. class TestRubyDebugCatchpoint < Test::Unit::TestCase def test_catchpoints assert_equal({}, Debugger.catchpoints) Debugger.start_ assert_equal({}, Debugger.catchpoints) Debugger.add_catchpoint('ZeroDivisionError') assert_equal({'ZeroDivisionError' => 0}, Debugger.catchpoints) Debugger.add_catchpoint('RuntimeError') assert_equal(['RuntimeError', 'ZeroDivisionError'], Debugger.catchpoints.keys.sort) ensure Debugger.stop end end
Version data entries
10 entries across 8 versions & 2 rubygems