We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4cb320 commit a353417Copy full SHA for a353417
test/test_rdoc_ruby_lex.rb
@@ -486,7 +486,7 @@ def test_unary_minus
486
end
487
488
def test_rational_imaginary_tokenize
489
- tokens = RDoc::RubyLex.tokenize '1.11r + 2.34i + 5.55ri', nil
+ tokens = RDoc::RubyLex.tokenize '1.11r + 2.34i + 5.55ri + 0i', nil
490
491
expected = [
492
@TK::TkRATIONAL .new( 0, 1, 0, '1.11r'),
@@ -498,7 +498,11 @@ def test_rational_imaginary_tokenize
498
@TK::TkPLUS .new(14, 1, 14, '+'),
499
@TK::TkSPACE .new(15, 1, 15, ' '),
500
@TK::TkIMAGINARY.new(16, 1, 16, '5.55ri'),
501
- @TK::TkNL .new(22, 1, 22, "\n"),
+ @TK::TkSPACE .new(22, 1, 22, ' '),
502
+ @TK::TkPLUS .new(23, 1, 23, '+'),
503
+ @TK::TkSPACE .new(24, 1, 24, ' '),
504
+ @TK::TkIMAGINARY.new(25, 1, 25, '0i'),
505
+ @TK::TkNL .new(27, 1, 27, "\n"),
506
]
507
508
assert_equal expected, tokens
0 commit comments