From ba1ed9e8ca35aede2cacf6fee9ca1cc264c90df9 Mon Sep 17 00:00:00 2001 From: aycabta Date: Thu, 12 Jul 2018 09:38:50 +0900 Subject: [PATCH] Coordinate test_parse_comment_method with other test methods --- test/test_rdoc_parser_ruby.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/test_rdoc_parser_ruby.rb b/test/test_rdoc_parser_ruby.rb index 562b4a7092..8e31141f59 100644 --- a/test/test_rdoc_parser_ruby.rb +++ b/test/test_rdoc_parser_ruby.rb @@ -1313,8 +1313,16 @@ def test_parse_comment_method { :line_no => 0, :char_no => 0, :kind => :on_nl, :text => "\n" }, { :line_no => 1, :char_no => 1, :kind => :on_sp, :text => '' } ] + parsed_stream = foo.token_stream.map { |t| + { + :line_no => t[:line_no], + :char_no => t[:char_no], + :kind => t[:kind], + :text => t[:text] + } + } - assert_equal stream, foo.token_stream + assert_equal stream, parsed_stream end def test_parse_comment_method_args