Sha256: d2ce88b8322d80a58039479232e1e738ff9048fc2467d54d80c8cb2930c8beaa

Contents?: true

Size: 680 Bytes

Versions: 5

Compression:

Stored size: 680 Bytes

Contents

#!/usr/bin/env ruby
require 'test/unit'
require_relative '../../processor/command/set_subcmd/auto'
require_relative '../../processor/mock'

class TestCommandStep < Test::Unit::TestCase

  include MockDebugger
  def test_set_autoeval_save
    dbgr, cmd = Trepan::MockDebugger::setup('set', false)
    cmds = dbgr.core.processor.commands
    set_cmd = cmds['set']
    auto_cmd = Trepan::SubSubcommand::SetAuto.new(dbgr.core.processor, 
                                               set_cmd)
    eval_cmd = Trepan::SubSubcommand::SetAutoEval.new(cmd, auto_cmd, 'eval');
    eval_cmd.run([eval_cmd.name, 'on'])
    assert_equal(["set auto eval on"], eval_cmd.save_command)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
trepanning-2.15.35 test/unit/test-cmd-set-auto-eval.rb.try
trepanning-1.93.35 test/unit/test-cmd-set-auto-eval.rb.try
trepanning-2.15.33 test/unit/test-cmd-set-auto-eval.rb.try
trepanning-1.93.32 test/unit/test-cmd-set-auto-eval.rb.try
trepanning-0.1.6 test/unit/test-cmd-set-auto-eval.rb.try