Sha256: 3019d616dc237594aac941c6cd9c1b88a15a207c157211cd8c2d366a43e7695e
Contents?: true
Size: 624 Bytes
Versions: 61
Compression:
Stored size: 624 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_raise(RuntimeError) {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
61 entries across 51 versions & 3 rubygems