Skip to content

Instantly share code, notes, and snippets.

@headius
Created March 1, 2023 17:36
Show Gist options
  • Save headius/294250f57943aeef5c4b6c6b7ddc720f to your computer and use it in GitHub Desktop.
Save headius/294250f57943aeef5c4b6c6b7ddc720f to your computer and use it in GitHub Desktop.
[] irb $ jruby -Ilib -Itest/lib test/irb/test_ruby_lex.rb
/Users/headius/.gem/jruby/3.1.0/gems/power_assert-2.0.3/lib/power_assert.rb:8: warning: tracing (e.g. set_trace_func) will not capture all events without --debug flag
/Users/headius/.gem/jruby/3.1.0/gems/power_assert-2.0.3/lib/power_assert.rb:8: warning: tracing (e.g. set_trace_func) will not capture all events without --debug flag
Loaded suite test/irb/test_ruby_lex
Started
F
==========================================================================================================================================================================================================
Failure: test_a_closed_brace_and_not_closed_brace_in_a_line(TestIRB::TestRubyLex)
test/irb/test_ruby_lex.rb:30:in `block in assert_indenting'
test/irb/test_ruby_lex.rb:18:in `auto_indent'
/Users/headius/work/irb/lib/irb/ruby-lex.rb:194:in `set_auto_indent'
test/irb/test_ruby_lex.rb:34:in `assert_indenting'
test/irb/test_ruby_lex.rb:135:in `block in test_a_closed_brace_and_not_closed_brace_in_a_line'
132: input_with_correct_indents.each do |row|
133: lines << row.content
134: assert_indenting(lines, row.current_line_spaces, false)
=> 135: assert_indenting(lines, row.new_line_spaces, true)
136: end
137: end
138:
org/jruby/RubyArray.java:1987:in `each'
test/irb/test_ruby_lex.rb:132:in `test_a_closed_brace_and_not_closed_brace_in_a_line'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
Calculated the wrong number of spaces for:
p() {
<2> expected but was
<0>
==========================================================================================================================================================================================================
F
==========================================================================================================================================================================================================
Failure: test_auto_indent(TestIRB::TestRubyLex)
test/irb/test_ruby_lex.rb:30:in `block in assert_indenting'
test/irb/test_ruby_lex.rb:18:in `auto_indent'
/Users/headius/work/irb/lib/irb/ruby-lex.rb:194:in `set_auto_indent'
test/irb/test_ruby_lex.rb:34:in `assert_indenting'
test/irb/test_ruby_lex.rb:86:in `block in test_auto_indent'
83: input_with_correct_indents.each do |row|
84: lines << row.content
85: assert_indenting(lines, row.current_line_spaces, false)
=> 86: assert_indenting(lines, row.new_line_spaces, true)
87: end
88: end
89:
org/jruby/RubyArray.java:1987:in `each'
test/irb/test_ruby_lex.rb:83:in `test_auto_indent'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
Calculated the wrong number of spaces for:
def each_top_level_statement
<2> expected but was
<0>
==========================================================================================================================================================================================================
F
==========================================================================================================================================================================================================
Failure: test_braces_on_their_own_line(TestIRB::TestRubyLex)
test/irb/test_ruby_lex.rb:30:in `block in assert_indenting'
test/irb/test_ruby_lex.rb:18:in `auto_indent'
/Users/headius/work/irb/lib/irb/ruby-lex.rb:194:in `set_auto_indent'
test/irb/test_ruby_lex.rb:34:in `assert_indenting'
test/irb/test_ruby_lex.rb:102:in `block in test_braces_on_their_own_line'
99: input_with_correct_indents.each do |row|
100: lines << row.content
101: assert_indenting(lines, row.current_line_spaces, false)
=> 102: assert_indenting(lines, row.new_line_spaces, true)
103: end
104: end
105:
org/jruby/RubyArray.java:1987:in `each'
test/irb/test_ruby_lex.rb:99:in `test_braces_on_their_own_line'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
Calculated the wrong number of spaces for:
if true
<2> expected but was
<0>
==========================================================================================================================================================================================================
F
==========================================================================================================================================================================================================
Failure: test_bracket_corresponding_to_loop(TestIRB::TestRubyLex)
test/irb/test_ruby_lex.rb:30:in `block in assert_indenting'
test/irb/test_ruby_lex.rb:18:in `auto_indent'
/Users/headius/work/irb/lib/irb/ruby-lex.rb:194:in `set_auto_indent'
test/irb/test_ruby_lex.rb:34:in `assert_indenting'
test/irb/test_ruby_lex.rb:462:in `block in test_bracket_corresponding_to_loop'
459: input_with_correct_indents.each do |row|
460: lines << row.content
461: assert_indenting(lines, row.current_line_spaces, false)
=> 462: assert_indenting(lines, row.new_line_spaces, true)
463: assert_nesting_level(lines, row.nesting_level)
464: end
465: end
org/jruby/RubyArray.java:1987:in `each'
test/irb/test_ruby_lex.rb:459:in `test_bracket_corresponding_to_loop'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
Calculated the wrong number of spaces for:
loop {
<2> expected but was
<0>
==========================================================================================================================================================================================================
F
==========================================================================================================================================================================================================
Failure: test_bracket_corresponding_to_times(TestIRB::TestRubyLex)
test/irb/test_ruby_lex.rb:30:in `block in assert_indenting'
test/irb/test_ruby_lex.rb:18:in `auto_indent'
/Users/headius/work/irb/lib/irb/ruby-lex.rb:194:in `set_auto_indent'
test/irb/test_ruby_lex.rb:34:in `assert_indenting'
test/irb/test_ruby_lex.rb:430:in `block in test_bracket_corresponding_to_times'
427: input_with_correct_indents.each do |row|
428: lines << row.content
429: assert_indenting(lines, row.current_line_spaces, false)
=> 430: assert_indenting(lines, row.new_line_spaces, true)
431: assert_nesting_level(lines, row.nesting_level)
432: end
433: end
org/jruby/RubyArray.java:1987:in `each'
test/irb/test_ruby_lex.rb:427:in `test_bracket_corresponding_to_times'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
Calculated the wrong number of spaces for:
3.times { |i|
<2> expected but was
<0>
==========================================================================================================================================================================================================
F
==========================================================================================================================================================================================================
Failure: test_broken_heredoc(TestIRB::TestRubyLex)
test/irb/test_ruby_lex.rb:30:in `block in assert_indenting'
test/irb/test_ruby_lex.rb:18:in `auto_indent'
/Users/headius/work/irb/lib/irb/ruby-lex.rb:194:in `set_auto_indent'
test/irb/test_ruby_lex.rb:34:in `assert_indenting'
test/irb/test_ruby_lex.rb:531:in `block in test_broken_heredoc'
528: input_with_correct_indents.each do |row|
529: lines << row.content
530: assert_indenting(lines, row.current_line_spaces, false)
=> 531: assert_indenting(lines, row.new_line_spaces, true)
532: assert_nesting_level(lines, row.nesting_level)
533: end
534: end
org/jruby/RubyArray.java:1987:in `each'
test/irb/test_ruby_lex.rb:528:in `test_broken_heredoc'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
Calculated the wrong number of spaces for:
def foo
<2> expected but was
<0>
==========================================================================================================================================================================================================
.F
==========================================================================================================================================================================================================
Failure: test_broken_percent_literal_in_method(TestIRB::TestRubyLex):
There is already another token in the position of #<Ripper::Lexer::Elem: on_error1@3:3:END: "": irrecoverable syntax error at end-of-file>.
<8> was expected to be nil.
test/irb/test_ruby_lex.rb:618:in `block in test_broken_percent_literal_in_method'
615: EOC
616: pos_to_index = {}
617: tokens.each_with_index { |t, i|
=> 618: assert_nil(pos_to_index[t.pos], "There is already another token in the position of #{t.inspect}.")
619: pos_to_index[t.pos] = i
620: }
621: end
org/jruby/RubyArray.java:1987:in `each'
org/jruby/RubyEnumerable.java:1218:in `each_with_index'
test/irb/test_ruby_lex.rb:617:in `test_broken_percent_literal_in_method'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
==========================================================================================================================================================================================================
F
==========================================================================================================================================================================================================
Failure: test_corresponding_syntax_to_keyword_do(TestIRB::TestRubyLex)
test/irb/test_ruby_lex.rb:30:in `block in assert_indenting'
test/irb/test_ruby_lex.rb:18:in `auto_indent'
/Users/headius/work/irb/lib/irb/ruby-lex.rb:194:in `set_auto_indent'
test/irb/test_ruby_lex.rb:34:in `assert_indenting'
test/irb/test_ruby_lex.rb:365:in `block in test_corresponding_syntax_to_keyword_do'
362: input_with_correct_indents.each do |row|
363: lines << row.content
364: assert_indenting(lines, row.current_line_spaces, false)
=> 365: assert_indenting(lines, row.new_line_spaces, true)
366: assert_nesting_level(lines, row.nesting_level)
367: end
368: end
org/jruby/RubyArray.java:1987:in `each'
test/irb/test_ruby_lex.rb:362:in `test_corresponding_syntax_to_keyword_do'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
Calculated the wrong number of spaces for:
while i > 0
<2> expected but was
<0>
==========================================================================================================================================================================================================
F
==========================================================================================================================================================================================================
Failure: test_corresponding_syntax_to_keyword_do_in_class(TestIRB::TestRubyLex)
test/irb/test_ruby_lex.rb:30:in `block in assert_indenting'
test/irb/test_ruby_lex.rb:18:in `auto_indent'
/Users/headius/work/irb/lib/irb/ruby-lex.rb:194:in `set_auto_indent'
test/irb/test_ruby_lex.rb:34:in `assert_indenting'
test/irb/test_ruby_lex.rb:316:in `block in test_corresponding_syntax_to_keyword_do_in_class'
313: input_with_correct_indents.each do |row|
314: lines << row.content
315: assert_indenting(lines, row.current_line_spaces, false)
=> 316: assert_indenting(lines, row.new_line_spaces, true)
317: assert_nesting_level(lines, row.nesting_level)
318: end
319: end
org/jruby/RubyArray.java:1987:in `each'
test/irb/test_ruby_lex.rb:313:in `test_corresponding_syntax_to_keyword_do_in_class'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
Calculated the wrong number of spaces for:
class C
<2> expected but was
<0>
==========================================================================================================================================================================================================
F
==========================================================================================================================================================================================================
Failure: test_corresponding_syntax_to_keyword_for(TestIRB::TestRubyLex)
test/irb/test_ruby_lex.rb:30:in `block in assert_indenting'
test/irb/test_ruby_lex.rb:18:in `auto_indent'
/Users/headius/work/irb/lib/irb/ruby-lex.rb:194:in `set_auto_indent'
test/irb/test_ruby_lex.rb:34:in `assert_indenting'
test/irb/test_ruby_lex.rb:381:in `block in test_corresponding_syntax_to_keyword_for'
378: input_with_correct_indents.each do |row|
379: lines << row.content
380: assert_indenting(lines, row.current_line_spaces, false)
=> 381: assert_indenting(lines, row.new_line_spaces, true)
382: assert_nesting_level(lines, row.nesting_level)
383: end
384: end
org/jruby/RubyArray.java:1987:in `each'
test/irb/test_ruby_lex.rb:378:in `test_corresponding_syntax_to_keyword_for'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
Calculated the wrong number of spaces for:
for i in [1]
<2> expected but was
<0>
==========================================================================================================================================================================================================
F
==========================================================================================================================================================================================================
Failure: test_corresponding_syntax_to_keyword_for_with_do(TestIRB::TestRubyLex)
test/irb/test_ruby_lex.rb:30:in `block in assert_indenting'
test/irb/test_ruby_lex.rb:18:in `auto_indent'
/Users/headius/work/irb/lib/irb/ruby-lex.rb:194:in `set_auto_indent'
test/irb/test_ruby_lex.rb:34:in `assert_indenting'
test/irb/test_ruby_lex.rb:397:in `block in test_corresponding_syntax_to_keyword_for_with_do'
394: input_with_correct_indents.each do |row|
395: lines << row.content
396: assert_indenting(lines, row.current_line_spaces, false)
=> 397: assert_indenting(lines, row.new_line_spaces, true)
398: assert_nesting_level(lines, row.nesting_level)
399: end
400: end
org/jruby/RubyArray.java:1987:in `each'
test/irb/test_ruby_lex.rb:394:in `test_corresponding_syntax_to_keyword_for_with_do'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
Calculated the wrong number of spaces for:
for i in [1] do
<2> expected but was
<0>
==========================================================================================================================================================================================================
F
==========================================================================================================================================================================================================
Failure: test_corresponding_syntax_to_keyword_in(TestIRB::TestRubyLex)
test/irb/test_ruby_lex.rb:30:in `block in assert_indenting'
test/irb/test_ruby_lex.rb:18:in `auto_indent'
/Users/headius/work/irb/lib/irb/ruby-lex.rb:194:in `set_auto_indent'
test/irb/test_ruby_lex.rb:34:in `assert_indenting'
test/irb/test_ruby_lex.rb:414:in `block in test_corresponding_syntax_to_keyword_in'
411: input_with_correct_indents.each do |row|
412: lines << row.content
413: assert_indenting(lines, row.current_line_spaces, false)
=> 414: assert_indenting(lines, row.new_line_spaces, true)
415: assert_nesting_level(lines, row.nesting_level)
416: end
417: end
org/jruby/RubyArray.java:1987:in `each'
test/irb/test_ruby_lex.rb:411:in `test_corresponding_syntax_to_keyword_in'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
Calculated the wrong number of spaces for:
module E
<2> expected but was
<0>
==========================================================================================================================================================================================================
F
==========================================================================================================================================================================================================
Failure: test_do_corresponding_to_loop(TestIRB::TestRubyLex)
test/irb/test_ruby_lex.rb:30:in `block in assert_indenting'
test/irb/test_ruby_lex.rb:18:in `auto_indent'
/Users/headius/work/irb/lib/irb/ruby-lex.rb:194:in `set_auto_indent'
test/irb/test_ruby_lex.rb:34:in `assert_indenting'
test/irb/test_ruby_lex.rb:478:in `block in test_do_corresponding_to_loop'
475: input_with_correct_indents.each do |row|
476: lines << row.content
477: assert_indenting(lines, row.current_line_spaces, false)
=> 478: assert_indenting(lines, row.new_line_spaces, true)
479: assert_nesting_level(lines, row.nesting_level)
480: end
481: end
org/jruby/RubyArray.java:1987:in `each'
test/irb/test_ruby_lex.rb:475:in `test_do_corresponding_to_loop'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
Calculated the wrong number of spaces for:
loop do
<2> expected but was
<0>
==========================================================================================================================================================================================================
F
==========================================================================================================================================================================================================
Failure: test_do_corresponding_to_times(TestIRB::TestRubyLex)
test/irb/test_ruby_lex.rb:30:in `block in assert_indenting'
test/irb/test_ruby_lex.rb:18:in `auto_indent'
/Users/headius/work/irb/lib/irb/ruby-lex.rb:194:in `set_auto_indent'
test/irb/test_ruby_lex.rb:34:in `assert_indenting'
test/irb/test_ruby_lex.rb:446:in `block in test_do_corresponding_to_times'
443: input_with_correct_indents.each do |row|
444: lines << row.content
445: assert_indenting(lines, row.current_line_spaces, false)
=> 446: assert_indenting(lines, row.new_line_spaces, true)
447: assert_nesting_level(lines, row.nesting_level)
448: end
449: end
org/jruby/RubyArray.java:1987:in `each'
test/irb/test_ruby_lex.rb:443:in `test_do_corresponding_to_times'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
Calculated the wrong number of spaces for:
3.times do |i|
<2> expected but was
<0>
==========================================================================================================================================================================================================
F
==========================================================================================================================================================================================================
Failure: test_dyanmic_prompt(TestIRB::TestRubyLex)
test/irb/test_ruby_lex.rb:561:in `block in assert_dynamic_prompt'
test/irb/test_ruby_lex.rb:546:in `dynamic_prompt'
/Users/headius/work/irb/lib/irb/ruby-lex.rb:79:in `set_input'
test/irb/test_ruby_lex.rb:566:in `assert_dynamic_prompt'
test/irb/test_ruby_lex.rb:578:in `test_dyanmic_prompt'
575:
576: lines = input_with_prompt.map(&:content)
577: expected_prompt_list = input_with_prompt.map(&:prompt)
=> 578: assert_dynamic_prompt(lines, expected_prompt_list)
579: end
580:
581: def test_dyanmic_prompt_with_blank_line
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
Expected dynamic prompt:
001:1: :*
002:1: :*
003:0: :>
Actual dynamic prompt:
001:1: :>
002:1: :>
003:0: :>
<["001:1: :* ", "002:1: :* ", "003:0: :> "]> expected but was
<["001:1: :> ", "002:1: :> ", "003:0: :> "]>
diff:
? ["001:1: :* ", "002:1: :* ", "003:0: :> "]
? > >
? ? ?
==========================================================================================================================================================================================================
..F
==========================================================================================================================================================================================================
Failure: test_heredoc_with_indent(TestIRB::TestRubyLex)
test/irb/test_ruby_lex.rb:30:in `block in assert_indenting'
test/irb/test_ruby_lex.rb:18:in `auto_indent'
/Users/headius/work/irb/lib/irb/ruby-lex.rb:194:in `set_auto_indent'
test/irb/test_ruby_lex.rb:34:in `assert_indenting'
test/irb/test_ruby_lex.rb:495:in `block in test_heredoc_with_indent'
492: input_with_correct_indents.each do |row|
493: lines << row.content
494: assert_indenting(lines, row.current_line_spaces, false)
=> 495: assert_indenting(lines, row.new_line_spaces, true)
496: assert_nesting_level(lines, row.nesting_level)
497: end
498: end
org/jruby/RubyArray.java:1987:in `each'
test/irb/test_ruby_lex.rb:492:in `test_heredoc_with_indent'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
Calculated the wrong number of spaces for:
<<~Q
{
#
<0> expected but was
<2>
==========================================================================================================================================================================================================
....F
==========================================================================================================================================================================================================
Failure: test_mixed_rescue(TestIRB::TestRubyLex)
test/irb/test_ruby_lex.rb:30:in `block in assert_indenting'
test/irb/test_ruby_lex.rb:18:in `auto_indent'
/Users/headius/work/irb/lib/irb/ruby-lex.rb:194:in `set_auto_indent'
test/irb/test_ruby_lex.rb:34:in `assert_indenting'
test/irb/test_ruby_lex.rb:248:in `block in test_mixed_rescue'
245: input_with_correct_indents.each do |row|
246: lines << row.content
247: assert_indenting(lines, row.current_line_spaces, false)
=> 248: assert_indenting(lines, row.new_line_spaces, true)
249: end
250: end
251:
org/jruby/RubyArray.java:1987:in `each'
test/irb/test_ruby_lex.rb:245:in `test_mixed_rescue'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
Calculated the wrong number of spaces for:
def m
<2> expected but was
<0>
==========================================================================================================================================================================================================
F
==========================================================================================================================================================================================================
Failure: test_multiple_braces_in_a_line(TestIRB::TestRubyLex)
test/irb/test_ruby_lex.rb:30:in `block in assert_indenting'
test/irb/test_ruby_lex.rb:18:in `auto_indent'
/Users/headius/work/irb/lib/irb/ruby-lex.rb:194:in `set_auto_indent'
test/irb/test_ruby_lex.rb:34:in `assert_indenting'
test/irb/test_ruby_lex.rb:121:in `block in test_multiple_braces_in_a_line'
118: input_with_correct_indents.each do |row|
119: lines << row.content
120: assert_indenting(lines, row.current_line_spaces, false)
=> 121: assert_indenting(lines, row.new_line_spaces, true)
122: end
123: end
124:
org/jruby/RubyArray.java:1987:in `each'
test/irb/test_ruby_lex.rb:118:in `test_multiple_braces_in_a_line'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
Calculated the wrong number of spaces for:
[[[
<6> expected but was
<0>
==========================================================================================================================================================================================================
F
==========================================================================================================================================================================================================
Failure: test_oneliner_def_in_multiple_lines(TestIRB::TestRubyLex)
test/irb/test_ruby_lex.rb:30:in `block in assert_indenting'
test/irb/test_ruby_lex.rb:18:in `auto_indent'
/Users/headius/work/irb/lib/irb/ruby-lex.rb:194:in `set_auto_indent'
test/irb/test_ruby_lex.rb:34:in `assert_indenting'
test/irb/test_ruby_lex.rb:512:in `block in test_oneliner_def_in_multiple_lines'
509: input_with_correct_indents.each do |row|
510: lines << row.content
511: assert_indenting(lines, row.current_line_spaces, false)
=> 512: assert_indenting(lines, row.new_line_spaces, true)
513: assert_nesting_level(lines, row.nesting_level)
514: end
515: end
org/jruby/RubyArray.java:1987:in `each'
test/irb/test_ruby_lex.rb:509:in `test_oneliner_def_in_multiple_lines'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
Calculated the wrong number of spaces for:
def a()=[
1,
<4> expected but was
<2>
==========================================================================================================================================================================================================
F
==========================================================================================================================================================================================================
Failure: test_oneliner_method_definition(TestIRB::TestRubyLex)
test/irb/test_ruby_lex.rb:30:in `block in assert_indenting'
test/irb/test_ruby_lex.rb:18:in `auto_indent'
/Users/headius/work/irb/lib/irb/ruby-lex.rb:194:in `set_auto_indent'
test/irb/test_ruby_lex.rb:34:in `assert_indenting'
test/irb/test_ruby_lex.rb:279:in `block in test_oneliner_method_definition'
276: input_with_correct_indents.each do |row|
277: lines << row.content
278: assert_indenting(lines, row.current_line_spaces, false)
=> 279: assert_indenting(lines, row.new_line_spaces, true)
280: end
281: end
282:
org/jruby/RubyArray.java:1987:in `each'
test/irb/test_ruby_lex.rb:276:in `test_oneliner_method_definition'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
Calculated the wrong number of spaces for:
class A
<2> expected but was
<0>
==========================================================================================================================================================================================================
.F
==========================================================================================================================================================================================================
Failure: test_tlambda(TestIRB::TestRubyLex)
test/irb/test_ruby_lex.rb:30:in `block in assert_indenting'
test/irb/test_ruby_lex.rb:18:in `auto_indent'
/Users/headius/work/irb/lib/irb/ruby-lex.rb:194:in `set_auto_indent'
test/irb/test_ruby_lex.rb:34:in `assert_indenting'
test/irb/test_ruby_lex.rb:295:in `block in test_tlambda'
292: input_with_correct_indents.each do |row|
293: lines << row.content
294: assert_indenting(lines, row.current_line_spaces, false)
=> 295: assert_indenting(lines, row.new_line_spaces, true)
296: assert_nesting_level(lines, row.nesting_level)
297: end
298: end
org/jruby/RubyArray.java:1987:in `each'
test/irb/test_ruby_lex.rb:292:in `test_tlambda'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
Calculated the wrong number of spaces for:
if true
<2> expected but was
<0>
==========================================================================================================================================================================================================
F
==========================================================================================================================================================================================================
Failure: test_unterminated_code(TestIRB::TestRubyLex):
Error tokens must be ignored if there is corresponding non-error token.
<[:on_error1, :on_error1]> was expected to be empty.
test/irb/test_ruby_lex.rb:632:in `block in test_unterminated_code'
629: tokens = RubyLex.ripper_lex_without_warning(code)
630: assert_equal(code, tokens.map(&:tok).join, "Cannot reconstruct code from tokens")
631: error_tokens = tokens.map(&:event).grep(/error/)
=> 632: assert_empty(error_tokens, 'Error tokens must be ignored if there is corresponding non-error token')
633: end
634: end
635: end
org/jruby/RubyArray.java:1987:in `each'
test/irb/test_ruby_lex.rb:628:in `test_unterminated_code'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
org/jruby/RubyKernel.java:1292:in `catch'
org/jruby/RubyKernel.java:1287:in `catch'
==========================================================================================================================================================================================================
Finished in 1.058978 seconds.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
30 tests, 87 assertions, 22 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
26.6667% passed
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
28.33 tests/s, 82.15 assertions/s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment