Sha256: 4d57f93540b988a5de7e171f956dac024c061c4ec0fca6b652b0241608a07d97
Contents?: true
Size: 729 Bytes
Versions: 1
Compression:
Stored size: 729 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facet/floatstring.rb # # Extracted Wed Jan 25 10:52:51 EST 2006 # Unit Tools Reap Test Extractor # require 'facet/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.0.3 | packages/more/test/lib/facet/test_floatstring.rb |