Sha256: 21e83d3d0dca3984201aa8e0ca0c705dc3af009b32f2c49d9db1a690b4fddad8

Contents?: true

Size: 573 Bytes

Versions: 1

Compression:

Stored size: 573 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/nano/string/rand_byte.rb
#
# Extracted Fri Oct 28 14:20:18 EDT 2005
# Unit Tools Reap Test Extractor
#

require 'nano/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-0.9.0 test/lib/nano/string/test_rand_byte.rb