Sha256: bc257d03418b3f1761bb72d0deff1e75f9fdd8809b3909c977a383f503c8aa3b

Contents?: true

Size: 381 Bytes

Versions: 13

Compression:

Stored size: 381 Bytes

Contents

require 'test_helper'

class CacheHashTest < IdentityCache::TestCase

  def test_memcache_hash

    prng = Random.new(Time.now.to_i)
    3.times do
      random_str = Array.new(200){rand(36).to_s(36)}.join
      hash_val = IdentityCache.memcache_hash(random_str)
      assert hash_val
      assert_kind_of Numeric, hash_val
      assert_equal 0, (hash_val >> 64)
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
identity_cache-0.3.1 test/cache_hash_test.rb
identity_cache-0.3.0 test/cache_hash_test.rb
identity_cache-0.2.5 test/cache_hash_test.rb
identity_cache-0.2.4 test/cache_hash_test.rb
identity_cache-0.2.3 test/cache_hash_test.rb
identity_cache-0.2.2 test/cache_hash_test.rb
identity_cache-0.2.1 test/cache_hash_test.rb
identity_cache-0.2.0 test/cache_hash_test.rb
identity_cache-0.1.0 test/cache_hash_test.rb
identity_cache-0.0.7 test/cache_hash_test.rb
identity_cache-0.0.6 test/cache_hash_test.rb
identity_cache-0.0.5 test/cache_hash_test.rb
identity_cache-0.0.4 test/cache_hash_test.rb