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

Version Path
nanoc3-3.0.9 vendor/cri/test/test_core_ext.rb
nanoc3-3.0.8 vendor/cri/test/test_core_ext.rb
nanoc3-3.0.7 vendor/cri/test/test_core_ext.rb
nanoc3-3.0.6 vendor/cri/test/test_core_ext.rb
nanoc3-3.0.5 vendor/cri/test/test_core_ext.rb
nanoc3-3.0.4 vendor/cri/test/test_core_ext.rb
nanoc3-3.0.3 vendor/cri/test/test_core_ext.rb
nanoc3-3.0.2 vendor/cri/test/test_core_ext.rb
nanoc3-3.0.1 vendor/cri/test/test_core_ext.rb
nanoc3-3.0.0 vendor/cri/test/test_core_ext.rb
nanoc-2.2 vendor/cri/test/test_core_ext.rb
nanoc-2.2.1 vendor/cri/test/test_core_ext.rb
nanoc-2.2.2 vendor/cri/test/test_core_ext.rb