Sha256: ac11cf315bc2b733028e01339ba02ec7295f9f12564aa83d141cac85cce9c6cc
Contents?: true
Size: 634 Bytes
Versions: 1
Compression:
Stored size: 634 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/string/at_rand.rb # # Extracted Wed Aug 23 18:22:53 EDT 2006 # Unit Tools Reap Test Extractor # require 'facets/core/string/at_rand.rb' require 'test/unit' class TCString < Test::Unit::TestCase def test_at_rand a = '12345' 20.times{ assert_nothing_raised{ a.at_rand } } 20.times{ assert( a.include?( a.at_rand ) ) } end def test_at_rand! x = 'ab' r = x.at_rand! assert( r == 'a' || r == 'b' ) assert( x == 'a' || x == 'b' ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.7.30 | test/lib/facets/core/string/test_at_rand.rb |