Sha256: fff4975ef488c5ff834e8f4102c6383223088675039348707a192a9937a53963

Contents?: true

Size: 737 Bytes

Versions: 1

Compression:

Stored size: 737 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/more/floatstring.rb
#
# Extracted Fri Feb 16 02:00:36 EST 2007
# Project.rb Test Extraction
#

require 'facets/more/floatstring.rb'


  require 'test/unit' 

  class TC_FloatString < Test::Unit::TestCase

    def test_inner_inset
      fs = FloatString.new( "Hello World!" )
      fs.inner_insert("XXX", 4)
      assert_equal("HellXXXo World!", fs.to_s)
      fs.inner_insert("YYY", 4)
      assert_equal("HellXXXYYYo World!", fs.to_s)
    end

    def test_fill
      fs = FloatString.new( "Hello World!" )
      fs.inner_insert("XXX", 4)
      assert_equal("HeNNNN World!", fs.fill("N", 2..4))
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.8.49 test/lib/facets/more/test_floatstring.rb