From 5397dd2e76952c5afc0d838f1d0bd53bcb0c5258 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 14 Apr 2022 16:13:36 +0900 Subject: [ruby/rdoc] Apply matching word pairs to underscore-methods Protected characters with `PROTECT_ATTR` should not have special roles. https://github.com/ruby/rdoc/commit/c318af0ea2 --- test/rdoc/test_rdoc_markup_attribute_manager.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') diff --git a/test/rdoc/test_rdoc_markup_attribute_manager.rb b/test/rdoc/test_rdoc_markup_attribute_manager.rb index 944364ba89..e8ff602f96 100644 --- a/test/rdoc/test_rdoc_markup_attribute_manager.rb +++ b/test/rdoc/test_rdoc_markup_attribute_manager.rb @@ -145,6 +145,8 @@ class TestRDocMarkupAttributeManager < RDoc::TestCase assert_equal(["cat and ", @em_on, "5", @em_off, " dogs"], @am.flow("cat and _5_ dogs")) + + assert_equal([@tt_on, "__id__", @tt_off], @am.flow("+__id__+")) end def test_bold -- cgit v1.2.3