diff options
author | aycabta <aycabta@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-08 17:39:52 +0000 |
---|---|---|
committer | aycabta <aycabta@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-08 17:39:52 +0000 |
commit | 18911e99d2960433f4e77e5f6ce28bf187dad5a9 (patch) | |
tree | 53e7e346b56da5d75973fa2447b2175ee08b62c8 /test/rdoc/test_rdoc_markup_parser.rb | |
parent | f6a38e180e5abc4db445b8e50d698ced71dbea87 (diff) |
Merge RDoc 6.1.0.beta3 from upstream
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rdoc/test_rdoc_markup_parser.rb')
-rw-r--r-- | test/rdoc/test_rdoc_markup_parser.rb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/test/rdoc/test_rdoc_markup_parser.rb b/test/rdoc/test_rdoc_markup_parser.rb index 6d4953bc06..344d67df39 100644 --- a/test/rdoc/test_rdoc_markup_parser.rb +++ b/test/rdoc/test_rdoc_markup_parser.rb @@ -1045,6 +1045,41 @@ the time assert_equal expected, @RMP.parse(" 1\n 2\n\n 3").parts end + def test_parse_block_quote + expected = [ + @RM::BlockQuote.new(@RM::Paragraph.new("foo")) + ] + assert_equal expected, @RMP.parse(<<-DOC).parts +>>> + foo + DOC + + expected = [ + @RM::BlockQuote.new(@RM::Paragraph.new("foo"), + @RM::Verbatim.new("code\n"), + @RM::Paragraph.new("bar")) + ] + assert_equal expected, @RMP.parse(<<-DOC).parts +>>> + foo + code + bar + DOC + + expected = [ + @RM::BlockQuote.new(@RM::Paragraph.new("foo"), + @RM::BlockQuote.new(@RM::Paragraph.new("bar")), + @RM::Paragraph.new("zot")) + ] + assert_equal expected, @RMP.parse(<<-DOC).parts +>>> + foo + >>> + bar + zot + DOC + end + def test_peek_token parser = util_parser |