mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Import RDoc 2.0.0 r56.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2142a5af51
commit
c42a631063
17 changed files with 1065 additions and 450 deletions
|
@ -149,43 +149,6 @@ class TestRDocRIFormatter < Test::Unit::TestCase
|
|||
assert_equal " * a b c\n\n", @output.string
|
||||
end
|
||||
|
||||
def test_display_heading_1
|
||||
@f.display_heading 'heading', 1, ' '
|
||||
|
||||
assert_equal "\nHEADING\n=======\n\n", @output.string
|
||||
end
|
||||
|
||||
def test_display_heading_2
|
||||
@f.display_heading 'heading', 2, ' '
|
||||
|
||||
assert_equal "\nheading\n-------\n\n", @output.string
|
||||
end
|
||||
|
||||
def test_display_heading_3
|
||||
@f.display_heading 'heading', 3, ' '
|
||||
|
||||
assert_equal " heading\n\n", @output.string
|
||||
end
|
||||
|
||||
def test_display_list
|
||||
list = RDoc::Markup::Flow::LIST.new :NUMBER
|
||||
list << RDoc::Markup::Flow::LI.new(nil, 'a b c')
|
||||
list << RDoc::Markup::Flow::LI.new(nil, 'd e f')
|
||||
|
||||
@f.display_list list
|
||||
|
||||
assert_equal " 1. a b c\n\n 2. d e f\n\n", @output.string
|
||||
end
|
||||
|
||||
def test_display_list_bullet
|
||||
list = RDoc::Markup::Flow::LIST.new :BULLET
|
||||
list << RDoc::Markup::Flow::LI.new(nil, 'a b c')
|
||||
|
||||
@f.display_list list
|
||||
|
||||
assert_equal " * a b c\n\n", @output.string
|
||||
end
|
||||
|
||||
def test_display_list_labeled
|
||||
list = RDoc::Markup::Flow::LIST.new :LABELED
|
||||
list << RDoc::Markup::Flow::LI.new('label', 'a b c')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue