Sha256: a0e29f5803f322c9642ba97f9c141dd974b815722f28dce682cfa347871a5317

Contents?: true

Size: 587 Bytes

Versions: 1

Compression:

Stored size: 587 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/string/rand_byte.rb
#
# Extracted Mon Jul 03 00:56:56 EDT 2006
# Unit Tools Reap Test Extractor
#

require 'facets/core/string/rand_byte.rb'


  require 'test/unit'

  class TCString < Test::Unit::TestCase

    def test_rand_byte
      s = 'ab'
      r = s.rand_byte
      assert( r == 97 || r == 98 )
    end

    def test_rand_byte
      s = 'ab'
      r = s.rand_byte
      assert( r == 97 || r == 98 )
      assert( s = 'a' || s = 'b' )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.4.4 test/lib/facets/core/string/test_rand_byte.rb