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 a2b511c commit 2725175Copy full SHA for 2725175
test/test_rdoc_parser_ruby.rb
@@ -74,7 +74,7 @@ class C; end
74
75
comment = parser.collect_first_comment
76
77
- assert_equal RDoc::Comment.new("first\n", @top_level), comment
+ assert_equal RDoc::Comment.new("=begin\nfirst\n=end\n", @top_level), comment
78
end
79
80
def test_get_class_or_module
@@ -2154,7 +2154,9 @@ def test_parse_statements_def_percent_string_pound
2154
{ :line_no => 2, :char_no => 5, :kind => :on_nl, :text => "\n" },
2155
{ :line_no => 3, :char_no => 0, :kind => :on_regexp, :text => '%r{#}' },
2156
{ :line_no => 3, :char_no => 5, :kind => :on_nl, :text => "\n" },
2157
- { :line_no => 4, :char_no => 0, :kind => :on_kw, :text => 'end' }
+ { :line_no => 4, :char_no => 0, :kind => :on_regexp, :text => '%r{#{}}' },
2158
+ { :line_no => 4, :char_no => 7, :kind => :on_nl, :text => "\n" },
2159
+ { :line_no => 5, :char_no => 0, :kind => :on_kw, :text => 'end' }
2160
]
2161
parsed_stream = a.token_stream.map { |tk|
2162
{
0 commit comments