Sha256: 2cab0520dd9e056242ebb2fcfd0d84a733be16a0c5f1bb578c09569c3f35c1e8

Contents?: true

Size: 825 Bytes

Versions: 13

Compression:

Stored size: 825 Bytes

Contents

#!/usr/bin/env ruby
require 'test/unit'
require_relative 'fn_helper'

class TestFnTestHelper < Test::Unit::TestCase

  include FnTestHelper

  def test_basic
    assert_equal(__LINE__, get_lineno, 'get_lineno()')
    assert_equal(0,
                 '-- (/tmp/trepan/tmp/gcd.rb:4)' =~ TREPAN_LOC)
    assert_equal(0, '(trepan): exit' =~ TREPAN_PROMPT)

    output='
-- (/tmp/trepan/tmp/gcd.rb:4)
(trepan): s
-- (/tmp/trepan/tmp/gcd.rb:18)
(trepan): s
-- (/tmp/trepan/tmp/gcd.rb:19)
(trepan): s
.. (/tmp/trepan/tmp/gcd.rb:0)
(trepan): s
-> (/tmp/trepan/tmp/gcd.rb:4)
'.split(/\n/)
   expect='
-- (/tmp/trepan/tmp/gcd.rb:4)
-- (/tmp/trepan/tmp/gcd.rb:18)
-- (/tmp/trepan/tmp/gcd.rb:19)
.. (/tmp/trepan/tmp/gcd.rb:0)
-> (/tmp/trepan/tmp/gcd.rb:4)
'.split(/\n/)
  assert_equal(expect, filter_line_cmd(output))
  end
  
end






Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
trepanning-2.15.35 test/functional/test-fn_helper.rb
trepanning-1.93.35 test/functional/test-fn_helper.rb
trepanning-2.15.33 test/functional/test-fn_helper.rb
trepanning-1.93.32 test/functional/test-fn_helper.rb
trepanning-0.1.6 test/functional/test-fn_helper.rb
trepanning-0.1.4 test/functional/test-fn_helper.rb
trepanning-0.1.3 test/functional/test-fn_helper.rb
trepanning-0.1.2 test/functional/test-fn_helper.rb
trepanning-0.1.1 test/functional/test-fn_helper.rb
trepanning-0.1.0 test/functional/test-fn_helper.rb
trepanning-0.0.9 test/functional/test-fn_helper.rb
trepanning-0.0.8 test/functional/test-fn_helper.rb
trepanning-0.0.6 test/functional/test-fn_helper.rb