3 require 'rdoc/ri/formatter'
5 class TestRDocRIAttributeFormatter < Test::Unit::TestCase
12 @f = RDoc::RI::AttributeFormatter.new @output, @width, @indent
17 assert_equal '', @output.string
21 @f.wrap 'a ' * (@width / 2)
22 assert_equal " a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a \n a \n",
27 @f.wrap 'a <tt>b</tt> c'
28 assert_equal " a b c\n", @output.string
33 assert_equal '', @output.string
38 assert_equal " a b c\n", @output.string