# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/more/floatstring.rb # # Extracted Tue Jun 06 09:30:19 EDT 2006 # Unit Tools Reap Test Extractor # 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