diff options
author | aycabta <aycabta@gmail.com> | 2021-03-16 18:59:22 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2021-04-03 01:21:38 +0900 |
commit | e84d275fe6d0c14ba58ce73b13323879c060b7ae (patch) | |
tree | a25d05ba7dfec8a849f6f105638dfc88f6590503 /test/rdoc/test_rdoc_markup_to_html.rb | |
parent | 54aa11efa8b1be2c5d20402890d6d2fa90aa19a8 (diff) | |
download | ruby-e84d275fe6d0c14ba58ce73b13323879c060b7ae.tar.gz |
[ruby/rdoc] Treat other tags as word boundaries
https://github.com/ruby/rdoc/commit/8222f85a17
Diffstat (limited to 'test/rdoc/test_rdoc_markup_to_html.rb')
-rw-r--r-- | test/rdoc/test_rdoc_markup_to_html.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/rdoc/test_rdoc_markup_to_html.rb b/test/rdoc/test_rdoc_markup_to_html.rb index 6ec52989c7..0b25f462ae 100644 --- a/test/rdoc/test_rdoc_markup_to_html.rb +++ b/test/rdoc/test_rdoc_markup_to_html.rb @@ -710,6 +710,11 @@ EXPECTED assert_equal "\n<p><a href=\":symbol\">aaa</a></p>\n", @to.convert('aaa[:symbol]') end + def test_convert_underscore_adjacent_to_code + assert_equal "\n<p><code>aaa</code>_</p>\n", @to.convert(%q{+aaa+_}) + assert_equal "\n<p>`<code>i386-mswin32_</code><em>MSRTVERSION</em>'</p>\n", @to.convert(%q{`+i386-mswin32_+_MSRTVERSION_'}) + end + def test_gen_url assert_equal '<a href="example">example</a>', @to.gen_url('link:example', 'example') |