Sha256: edc92731cf4dcc0cdb4624f4c990fa164490a50ec1edeacafe396c7b49c06688

Contents?: true

Size: 352 Bytes

Versions: 3

Compression:

Stored size: 352 Bytes

Contents

require 'spec_helper'

describe MurmurHash do
  it "gc safe" do
    {
      MurmurHash1 => "c709abd5",
      MurmurHash2 => "33f67c7e",
      MurmurHash2A => "df25554b",
    }.each do |c, should|
      murmur = c.new
      GC.start
      murmur.update("murmur")
      GC.start
      expect(murmur.update("hash").to_s).to eq(should);
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
digest-murmurhash-0.2.3 spec/mem_spec.rb
digest-murmurhash-0.2.2 spec/mem_spec.rb
digest-murmurhash-0.2.1 spec/mem_spec.rb