diff options
author | Nobuyoshi Nakada <[email protected]> | 2022-11-30 22:59:15 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2022-12-01 02:36:20 +0900 |
commit | 99cad3fccdb9e7a66ff4c8231d43dafa336b2687 (patch) | |
tree | 65a3aa4e9a688da3a9fda90159840c5cf7e30270 /test | |
parent | c87b3ee671581594b60ae7cac05a053b1c12f3b9 (diff) |
[ruby/rdoc] Non-RD part feature has not been imported to RDoc
https://github.com/ruby/rdoc/commit/fe0159de2f
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6835
Diffstat (limited to 'test')
-rw-r--r-- | test/rdoc/test_rdoc_rd_block_parser.rb | 21 |
1 files changed, 21 insertions, 0 deletions
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") |