Sha256: ad8ea74245e981e20edb80f7595f19f8d722a6e61c47aedbb39a9015bd77cf85

Contents?: true

Size: 391 Bytes

Versions: 3

Compression:

Stored size: 391 Bytes

Contents

require_relative "helper"
require_relative "lint/hyper_log_log"

class TestCommandsOnHyperLogLog < Test::Unit::TestCase

  include Helper::Client
  include Lint::HyperLogLog

  def test_pfmerge
    target_version "2.8.9" do
      r.pfadd "foo", "s1"
      r.pfadd "bar", "s2"

      assert_equal true, r.pfmerge("res", "foo", "bar")
      assert_equal 2, r.pfcount("res")
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
redis-4.0.2 test/commands_on_hyper_log_log_test.rb
redis-4.0.1 test/commands_on_hyper_log_log_test.rb
redis-4.0.0 test/commands_on_hyper_log_log_test.rb