1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/rdoc/*, test/rdoc/*: Update rdoc-5.0.0.beta1

This version is mostly same as r56072. It contains to remove code
  for Ruby 1.8

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
hsbt 2016-09-07 02:51:12 +00:00
parent f0dc29f211
commit 46e5c5622f
10 changed files with 67 additions and 56 deletions

View file

@ -25,7 +25,6 @@ class TestRDocMarkupToBs < RDoc::Markup::TextFormatterTestCase
end
def accept_heading
skip "No String#chars, upgrade your ruby" unless ''.respond_to? :chars
assert_equal "===== H\bHe\bel\bll\blo\bo\n", @to.res.join
end
@ -216,37 +215,30 @@ class TestRDocMarkupToBs < RDoc::Markup::TextFormatterTestCase
end
def accept_heading_1
skip "No String#chars, upgrade your ruby" unless ''.respond_to? :chars
assert_equal "= H\bHe\bel\bll\blo\bo\n", @to.end_accepting
end
def accept_heading_2
skip "No String#chars, upgrade your ruby" unless ''.respond_to? :chars
assert_equal "== H\bHe\bel\bll\blo\bo\n", @to.end_accepting
end
def accept_heading_3
skip "No String#chars, upgrade your ruby" unless ''.respond_to? :chars
assert_equal "=== H\bHe\bel\bll\blo\bo\n", @to.end_accepting
end
def accept_heading_4
skip "No String#chars, upgrade your ruby" unless ''.respond_to? :chars
assert_equal "==== H\bHe\bel\bll\blo\bo\n", @to.end_accepting
end
def accept_heading_indent
skip "No String#chars, upgrade your ruby" unless ''.respond_to? :chars
assert_equal " = H\bHe\bel\bll\blo\bo\n", @to.end_accepting
end
def accept_heading_b
skip "No String#chars, upgrade your ruby" unless ''.respond_to? :chars
assert_equal "= H\bHe\bel\bll\blo\bo\n", @to.end_accepting
end
def accept_heading_suppressed_crossref
skip "No String#chars, upgrade your ruby" unless ''.respond_to? :chars
assert_equal "= H\bHe\bel\bll\blo\bo\n", @to.end_accepting
end
@ -264,24 +256,20 @@ class TestRDocMarkupToBs < RDoc::Markup::TextFormatterTestCase
end
def accept_paragraph_b
skip "No String#chars, upgrade your ruby" unless ''.respond_to? :chars
assert_equal "reg b\bbo\bol\bld\bd \b w\bwo\bor\brd\bds\bs reg\n",
@to.end_accepting
end
def accept_paragraph_br
skip "No String#chars, upgrade your ruby" unless ''.respond_to? :chars
assert_equal "one\ntwo\n", @to.end_accepting
end
def accept_paragraph_break
skip "No String#chars, upgrade your ruby" unless ''.respond_to? :chars
assert_equal "hello\nworld\n",
@to.end_accepting
end
def accept_paragraph_i
skip "No String#chars, upgrade your ruby" unless ''.respond_to? :chars
assert_equal "reg _\bi_\bt_\ba_\bl_\bi_\bc_\b _\bw_\bo_\br_\bd_\bs reg\n",
@to.end_accepting
end
@ -301,12 +289,10 @@ class TestRDocMarkupToBs < RDoc::Markup::TextFormatterTestCase
end
def accept_paragraph_star
skip "No String#chars, upgrade your ruby" unless ''.respond_to? :chars
assert_equal "reg b\bbo\bol\bld\bd reg\n", @to.end_accepting
end
def accept_paragraph_underscore
skip "No String#chars, upgrade your ruby" unless ''.respond_to? :chars
assert_equal "reg _\bi_\bt_\ba_\bl_\bi_\bc reg\n", @to.end_accepting
end
@ -364,4 +350,3 @@ words words words words
end
end