# File test/test_parse_tree.rb, line 228 228: def setup 229: super 230: @processor = ParseTree.new(false) 231: end
# File test/test_parse_tree.rb, line 233 233: def test_process_string 234: actual = @processor.process '1 + nil' 235: expected = s(:call, s(:lit, 1), :+, s(:arglist, s(:nil))) 236: 237: assert_equal expected, actual 238: 239: actual = @processor.process 'puts 42' 240: expected = s(:call, nil, :puts, s(:arglist, s(:lit, 42))) 241: 242: assert_equal expected, actual 243: end
# File test/test_parse_tree.rb, line 245 245: def test_process_string_newlines 246: @processor = ParseTree.new(true) 247: actual = @processor.process "1 +\n nil", false, 'test.rb', 5 248: expected = s(:newline, 6, "test.rb", 249: s(:call, s(:lit, 1), :+, s(:arglist, s(:nil)))) 250: 251: assert_equal expected, actual 252: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.