# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # 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