Skip to content

Commit 265ef8b

Browse files
authored
Merge pull request #638 from aycabta/coordinate-impl-of-test-with-other-tests
Coordinate test_parse_comment_method with other test methods
2 parents ea8689b + ba1ed9e commit 265ef8b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/test_rdoc_parser_ruby.rb

+9-1
Original file line numberDiff line numberDiff line change
@@ -1313,8 +1313,16 @@ def test_parse_comment_method
13131313
{ :line_no => 0, :char_no => 0, :kind => :on_nl, :text => "\n" },
13141314
{ :line_no => 1, :char_no => 1, :kind => :on_sp, :text => '' }
13151315
]
1316+
parsed_stream = foo.token_stream.map { |t|
1317+
{
1318+
:line_no => t[:line_no],
1319+
:char_no => t[:char_no],
1320+
:kind => t[:kind],
1321+
:text => t[:text]
1322+
}
1323+
}
13161324

1317-
assert_equal stream, foo.token_stream
1325+
assert_equal stream, parsed_stream
13181326
end
13191327

13201328
def test_parse_comment_method_args

0 commit comments

Comments
 (0)