Sha256: 8ea8cbb16e51340e9060fd0e3c0eeeb67d160c8297a81ea243e4c6462c296d8f

Contents?: true

Size: 539 Bytes

Versions: 3

Compression:

Stored size: 539 Bytes

Contents

#!/usr/bin/env ruby
require 'test/unit'
require_relative '../../app/display'
require 'thread_frame'

class TestLibAppBrkptMgr < Test::Unit::TestCase

  def test_basic
    tf = RubyVM::Frame.current
    mgr = DisplayMgr.new
    x = 1
    assert_equal(0, mgr.size)
    disp = mgr.add(tf, 'x > 1')
    assert_equal(1, mgr.max)
    assert_equal(true, disp.enabled?)
    
    mgr.enable_disable(disp.number, false)
    assert_equal(false, disp.enabled?)
    mgr.enable_disable(disp.number, true)
    assert_equal(true, disp.enabled?)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
trepanning-1.93.35 test/unit/test-app-display.rb
trepanning-1.93.32 test/unit/test-app-display.rb
trepanning-0.1.6 test/unit/test-app-display.rb