# Fill (Class)

In: | prettyprint.rb
Parent: | Test::Unit::TestCase

## Methods

format test_00_06 test_07_10 test_11_14 test_15_18 test_19_22 test_23_26 test_27

## Public Instance methods

format(width)

[Source]

    # File prettyprint.rb, line 843
        def format(width)
          PrettyPrint.format('', width) {|pp|
            pp.group {
              pp.text 'abc'
              pp.fill_breakable
              pp.text 'def'
              pp.fill_breakable
              pp.text 'ghi'
              pp.fill_breakable
              pp.text 'jkl'
              pp.fill_breakable
              pp.text 'mno'
              pp.fill_breakable
              pp.text 'pqr'
              pp.fill_breakable
              pp.text 'stu'
            }
          }
        end

test_00_06()

[Source]

    # File prettyprint.rb, line 863
        def test_00_06
          expected = "abc\ndef\nghi\njkl\nmno\npqr\nstu\n".chomp
          assert_equal(expected, format(0))
          assert_equal(expected, format(6))
        end

test_07_10()

[Source]

    # File prettyprint.rb, line 878
        def test_07_10
          expected = "abc def\nghi jkl\nmno pqr\nstu\n".chomp
          assert_equal(expected, format(7))
          assert_equal(expected, format(10))
        end

test_11_14()

[Source]

    # File prettyprint.rb, line 890
        def test_11_14
          expected = "abc def ghi\njkl mno pqr\nstu\n".chomp
          assert_equal(expected, format(11))
          assert_equal(expected, format(14))
        end

test_15_18()

[Source]

    # File prettyprint.rb, line 901
        def test_15_18
          expected = "abc def ghi jkl\nmno pqr stu\n".chomp
          assert_equal(expected, format(15))
          assert_equal(expected, format(18))
        end

test_19_22()

[Source]

    # File prettyprint.rb, line 911
        def test_19_22
          expected = "abc def ghi jkl mno\npqr stu\n".chomp
          assert_equal(expected, format(19))
          assert_equal(expected, format(22))
        end

test_23_26()

[Source]

    # File prettyprint.rb, line 921
        def test_23_26
          expected = "abc def ghi jkl mno pqr\nstu\n".chomp
          assert_equal(expected, format(23))
          assert_equal(expected, format(26))
        end

test_27()

[Source]

    # File prettyprint.rb, line 931
        def test_27
          expected = "abc def ghi jkl mno pqr stu\n".chomp
          assert_equal(expected, format(27))
        end

[Validate]