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 0ed52bf commit c1c16deCopy full SHA for c1c16de
test/test_rdoc_ruby_lex.rb
@@ -595,5 +595,22 @@ def test_class_tokenize_constant_with_exclamation
595
assert_equal expected, tokens
596
end
597
598
+ def test_class_tokenize_identifer_not_equal
599
+ tokens = RDoc::RubyLex.tokenize "foo!=bar\nfoo?=bar", nil
600
+
601
+ expected = [
602
+ @TK::TkIDENTIFIER.new( 0, 1, 0, "foo"),
603
+ @TK::TkNEQ .new( 3, 1, 3, "!="),
604
+ @TK::TkIDENTIFIER.new( 5, 1, 5, "bar"),
605
+ @TK::TkNL .new( 8, 1, 8, "\n"),
606
+ @TK::TkFID .new( 9, 2, 0, "foo?"),
607
+ @TK::TkASSIGN .new(13, 2, 4, "="),
608
+ @TK::TkIDENTIFIER.new(14, 2, 5, "bar"),
609
+ @TK::TkNL .new(17, 2, 9, "\n"),
610
+ ]
611
612
+ assert_equal expected, tokens
613
+ end
614
615
616
0 commit comments