Class | Fill
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 846
        def format(width)
          PrettyPrint.format('', width) {|q|
            q.group {
              q.text 'abc'
              q.fill_breakable
              q.text 'def'
              q.fill_breakable
              q.text 'ghi'
              q.fill_breakable
              q.text 'jkl'
              q.fill_breakable
              q.text 'mno'
              q.fill_breakable
              q.text 'pqr'
              q.fill_breakable
              q.text 'stu'
            }
          }
        end

test_00_06()

[Source]

    # File prettyprint.rb, line 866
        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 881
        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 893
        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 904
        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 914
        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 924
        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 934
        def test_27
          expected = "abc def ghi jkl mno pqr stu\n".chomp
          assert_equal(expected, format(27))
        end

[Validate]