Sha256: 15d503993fb082416084dbb6a3e889061768783753b4c670db531f364cbf6352
Contents?: true
Size: 813 Bytes
Versions: 13
Compression:
Stored size: 813 Bytes
Contents
class Cri::CoreExtTest < MiniTest::Unit::TestCase def test_string_wrap_and_indent assert_equal( "Lorem ipsum dolor sit amet, consectetur\n" + "adipisicing elit, sed do eiusmod tempor\n" + "incididunt ut labore et dolore magna\n" + "aliqua.", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.".wrap_and_indent(40, 0) ) assert_equal( " Lorem ipsum dolor sit amet,\n" + " consectetur adipisicing elit, sed\n" + " do eiusmod tempor incididunt ut\n" + " labore et dolore magna aliqua.", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.".wrap_and_indent(36, 4) ) end end
Version data entries
13 entries across 13 versions & 2 rubygems