From 99cad3fccdb9e7a66ff4c8231d43dafa336b2687 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 30 Nov 2022 22:59:15 +0900 Subject: [ruby/rdoc] Non-RD part feature has not been imported to RDoc https://github.com/ruby/rdoc/commit/fe0159de2f --- test/rdoc/test_rdoc_rd_block_parser.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'test/rdoc') diff --git a/test/rdoc/test_rdoc_rd_block_parser.rb b/test/rdoc/test_rdoc_rd_block_parser.rb index 22f432eaf4..ca0ac9f9e9 100644 --- a/test/rdoc/test_rdoc_rd_block_parser.rb +++ b/test/rdoc/test_rdoc_rd_block_parser.rb @@ -168,6 +168,27 @@ class TestRDocRdBlockParser < RDoc::TestCase tf.close! end +=begin + def test_parse_include_other_format + @block_parser.include_path = [Dir.tmpdir] + + expected = + doc( + blank_line, + para("include ((*worked*))"), + blank_line, + blank_line) + + str = <<~STR + =begin nonrd + <<< worked + =end + STR + + assert_equal(expected, @block_parser.parse str.lines.to_a) + end +=end + def test_parse_heading assert_equal doc(head(1, "H")), parse("= H") assert_equal doc(head(2, "H")), parse("== H") -- cgit v1.2.1