Sha256: f5d66ca12519e807af9b30aeca19a66440881c4f646a619827e9dd230ee914d8

Contents?: true

Size: 343 Bytes

Versions: 5

Compression:

Stored size: 343 Bytes

Contents

require 'test_helper'

class CacheHashTest < IdentityCache::TestCase

  def test_memcache_hash
    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

5 entries across 5 versions & 1 rubygems

Version Path
identity_cache-0.5.1 test/cache_hash_test.rb
identity_cache-0.5.0 test/cache_hash_test.rb
identity_cache-0.4.1 test/cache_hash_test.rb
identity_cache-0.4.0 test/cache_hash_test.rb
identity_cache-0.3.2 test/cache_hash_test.rb