Sha256: 3e600f2ecc24c79247c8e870bc5bfc8268c1b90df216c8bbf08a915e1c16e161

Contents?: true

Size: 530 Bytes

Versions: 27

Compression:

Stored size: 530 Bytes

Contents

#!/usr/bin/env ruby
require File.expand_path("helper", File.dirname(__FILE__))

# Some tests of Debugger module in C extension ruby_debug
class TestBreakpoints < Test::Unit::TestCase
  def test_find
    Debugger.start
    Debugger.add_breakpoint("foo.rb", 11, nil)
    assert_not_nil(Debugger::Breakpoint.find(Debugger.breakpoints, "foo.rb", 11))
    assert_nil(Debugger::Breakpoint.find(Debugger.breakpoints, "bar.rb", 11))
    assert_nil(Debugger::Breakpoint.find(Debugger.breakpoints, "foo.rb", 10))
    Debugger.stop
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
debase-0.1.1 test/test_breakpoints.rb
debase-0.1.0 test/test_breakpoints.rb
debase-0.0.9 test/test_breakpoints.rb
debase-0.0.8 test/test_breakpoints.rb
debase-0.0.7 test/test_breakpoints.rb
debase-0.0.6 test/test_breakpoints.rb
debase-0.0.5 test/test_breakpoints.rb