Sha256: 1ff6a3d7d165e21b5c3e0ff47f5aef1ed15e5acae1dd5f665415c6420cd7094c

Contents?: true

Size: 688 Bytes

Versions: 1

Compression:

Stored size: 688 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/nano/string/indent.rb
#
# Extracted Fri Oct 28 14:20:18 EDT 2005
# Unit Tools Reap Test Extractor
#

require 'nano/string/indent.rb'


  require 'test/unit'

  class TCString < Test::Unit::TestCase

    def test_tab
      a = "xyz".tab(4)
      assert_equal( '    ', a[0..3] )
      # Need to expand on this
    end

    def test_tabto
      a = "xyz".tabto(4)
      assert_equal( '    ', a[0..3] )
      # Need to expand on this
    end

    def test_indent
      a = "xyz".indent(4)
      assert_equal( '    ', a[0..3] )
      # Need to expand on this
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-0.9.0 test/lib/nano/string/test_indent.rb