Sha256: 86f704f775df18527d472d339531fe2289b355f84a181954446aecb5be13ef34
Contents?: true
Size: 783 Bytes
Versions: 1
Compression:
Stored size: 783 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/string/push.rb # # Extracted Tue Jun 06 09:30:19 EDT 2006 # Unit Tools Reap Test Extractor # require 'facets/core/string/push.rb' require 'test/unit' class TCString < Test::Unit::TestCase def setup @a = "" end def test_001 #assert_raises( ArgumentError ) { @a.push } assert_raises( ArgumentError ) { @a.push(1,2) } end def test_002 assert_equal( "0", @a.push("0") ) assert_equal( "01", @a.push("1") ) assert_equal( "012", @a.push("2") ) assert_equal( "0123", @a.push("3") ) assert_equal( "01234", @a.push("4") ) assert_equal( "012345", @a.push("5") ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.4.1 | test/lib/facets/core/string/test_push.rb |