From c9c1670f7e7aaa17e69fd14d573f2f40ccd8a3da Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 2 Dec 2023 21:24:11 +0900 Subject: [ruby/rdoc] Markup punctuations need to be separated with a space https://github.com/ruby/rdoc/commit/83f0149fc1 --- test/rdoc/test_rdoc_markup_to_html.rb | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/rdoc/test_rdoc_markup_to_html.rb b/test/rdoc/test_rdoc_markup_to_html.rb index 2dd8cf922d..e3affa533c 100644 --- a/test/rdoc/test_rdoc_markup_to_html.rb +++ b/test/rdoc/test_rdoc_markup_to_html.rb @@ -257,7 +257,7 @@ class TestRDocMarkupToHtml < RDoc::Markup::FormatterTestCase end def accept_paragraph_break - assert_equal "\n

hello
world

\n", @to.res.join + assert_equal "\n

hello
world

\n", @to.res.join end def accept_paragraph_i @@ -416,6 +416,18 @@ class TestRDocMarkupToHtml < RDoc::Markup::FormatterTestCase @to.start_accepting @to.accept_paragraph para("#{ohayo}\n", "#{sekai}\n") assert_equal "\n

#{ohayo}#{sekai}

\n", @to.res.join + + @to.start_accepting + @to.accept_paragraph para("+hello+\n", "world\n") + assert_equal "\n

hello world

\n", @to.res.join + + @to.start_accepting + @to.accept_paragraph para("hello\n", "+world+\n") + assert_equal "\n

hello world

\n", @to.res.join + + @to.start_accepting + @to.accept_paragraph para("+hello+\n", "+world+\n") + assert_equal "\n

hello world

\n", @to.res.join end def test_accept_heading_output_decoration -- cgit v1.2.3