Sha256: b1cf0f4054e56316db72a87853df91b36baec6f9e82abeabcd108c26ea1b4ec1
Contents?: true
Size: 733 Bytes
Versions: 1
Compression:
Stored size: 733 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facet/string/shift.rb # # Extracted Wed Jan 25 11:25:39 EST 2006 # Unit Tools Reap Test Extractor # require 'facet/string/shift.rb' require 'test/unit' class TCString < Test::Unit::TestCase def setup @a = "012345" end def test_001 assert_raises( ArgumentError ) { @a.shift(1) } end def test_002 assert_equal( "12345", @a.shift ) assert_equal( "2345", @a.shift ) assert_equal( "345", @a.shift ) assert_equal( "45", @a.shift ) assert_equal( "5", @a.shift ) assert_equal( "", @a.shift ) assert_equal( "", @a.shift ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.0.3 | packages/core/test/lib/facet/string/test_shift.rb |