Sha256: 01cf32b615a95827cb68465854dec35fa712f9b29c17e24ee60b541e64395fab
Contents?: true
Size: 975 Bytes
Versions: 11
Compression:
Stored size: 975 Bytes
Contents
require 'test/unit' class TestCommandREs < Test::Unit::TestCase require 'ruby-debug/command' require 'ruby-debug/commands/frame' include Debugger def test_quit c = QuitCommand.new(nil) assert c.regexp.match('quit') assert c.regexp.match('q') assert c.regexp.match('quit!') assert c.regexp.match('q!') assert c.regexp.match('quit unconditionally') assert c.regexp.match('exit') assert c.regexp.match('exit!') end def test_up c = UpCommand.new(nil) assert c.regexp.match('up') assert c.regexp.match('up 2') assert c.regexp.match('up 2+5') assert c.regexp.match('u') assert c.regexp.match('u 2') assert_equal nil, c.regexp.match('ufoo') end def test_down c = DownCommand.new(nil) assert c.regexp.match('down') assert c.regexp.match('down 2') assert_equal(nil, c.regexp.match('d 2')) assert_equal(nil, c.regexp.match('d')) assert_equal(nil, c.regexp.match('dow')) end end
Version data entries
11 entries across 11 versions & 1 rubygems