PageRenderTime 45ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/vendor/gems/ruby-debug-0.10.2/test/test-display.rb

https://github.com/technicalpickles/flockup
Ruby | 26 lines | 16 code | 5 blank | 5 comment | 0 complexity | eb57407d73e075ecfcd4558853d7314e MD5 | raw file
Possible License(s): GPL-2.0
  1. #!/usr/bin/env ruby
  2. require 'test/unit'
  3. # begin require 'rubygems' rescue LoadError end
  4. # require 'ruby-debug'; Debugger.start
  5. # Test Display commands
  6. class TestDisplay < Test::Unit::TestCase
  7. @@SRC_DIR = File.dirname(__FILE__) unless
  8. defined?(@@SRC_DIR)
  9. require File.join(@@SRC_DIR, 'helper')
  10. include TestHelper
  11. # Test commands in display.rb
  12. def test_basic
  13. testname='display'
  14. Dir.chdir(@@SRC_DIR) do
  15. script = File.join('data', testname + '.cmd')
  16. assert_equal(true,
  17. run_debugger(testname,
  18. "--script #{script} -- gcd.rb 3 5"))
  19. end
  20. end
  21. end