Class: R2RTestCase

Class | R2RTestCase
In: | test/test_parse_tree_extensions.rb
Parent: | Test::Unit::TestCase

### Methods

test_parse_tree_for_proc test_proc_to_ruby test_proc_to_ruby_args_1 test_proc_to_ruby_args_n test_proc_to_sexp test_proc_to_sexp_args_1 test_proc_to_sexp_args_n test_unbound_method_to_ruby util_setup_inline

### Public Instance methods

test_parse_tree_for_proc(
test_proc_to_ruby()
test_proc_to_ruby_args_1()

TODO: bus error

      def test_proc_to_ruby_args_0
        util_setup_inline
        block = proc { || puts 42 }
        assert_equal 'proc { || puts(42) }', block.to_ruby
      end

test_proc_to_ruby_args_n()
test_proc_to_sexp()
test_proc_to_sexp_args_1()

TODO: bus error

      def test_proc_to_sexp_args_0
        util_setup_inline
        p = proc { || 1 + 1 }
        s = s(:iter,
              s(:call, nil, :proc, s(:arglist)),
              nil,
              s(:call, s(:lit, 1), :+, s(:arglist, s(:lit, 1))))
        assert_equal s, p.to_sexp
      end

test_proc_to_sexp_args_n()
test_unbound_method_to_ruby()
util_setup_inline()

[Validate]