From: Nobuyoshi Nakada Date: 2009-03-09T11:52:21+09:00 Subject: [ruby-core:22770] Re: [Bug #883] Failure: test_handle_special_CROSSREF_no_underscore(TestRDocMarkupToHtmlCrossref) Hi, At Wed, 17 Dec 2008 00:30:45 +0900, Kazuhiro NISHIYAMA wrote in [ruby-core:20599]: > another failure example: > > % cd test > % ruby-trunk ../test/rdoc/test_rdoc_markup_to_html_crossref.rb > nil > Loaded suite ../test/rdoc/test_rdoc_markup_to_html_crossref > Started > F > Finished in 0.058379 seconds. > > 1) Failure: > test_handle_special_CROSSREF_no_underscore(TestRDocMarkupToHtmlCrossref) [../test/rdoc/test_rdoc_markup_to_html_crossref.rb:87]: > Expected "

../test/rdoc/rdoc_markup_to_html_crossref_reference.rb

", not "

../test/rdoc/rdoc_markup_to_html_crossref_reference.rb

". > > 1 tests, 29 assertions, 1 failures, 0 errors, 0 skips Assuming the test is correct. Index: lib/rdoc/markup/to_html_crossref.rb =================================================================== --- lib/rdoc/markup/to_html_crossref.rb (revision 22822) +++ lib/rdoc/markup/to_html_crossref.rb (working copy) @@ -66,5 +66,5 @@ class RDoc::Markup::ToHtmlCrossref < RDo # one special character (period, slash, or # underscore). - | [\/\w]+[_\/\.][\w\/\.]+ + | (?:\.\.\/)*[-\/\w]+[_\/\.][-\w\/\.]+ # Things that have markup suppressed -- Nobu Nakada