summaryrefslogtreecommitdiff
path: root/test/rdoc
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-11-30 22:59:15 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-12-01 02:36:20 +0900
commit99cad3fccdb9e7a66ff4c8231d43dafa336b2687 (patch)
tree65a3aa4e9a688da3a9fda90159840c5cf7e30270 /test/rdoc
parentc87b3ee671581594b60ae7cac05a053b1c12f3b9 (diff)
downloadruby-99cad3fccdb9e7a66ff4c8231d43dafa336b2687.tar.gz
[ruby/rdoc] Non-RD part feature has not been imported to RDoc
https://github.com/ruby/rdoc/commit/fe0159de2f
Diffstat (limited to 'test/rdoc')
-rw-r--r--test/rdoc/test_rdoc_rd_block_parser.rb21
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")