Sha256: 6d7d1c23e88a0f515ab5498e844aef0e6c7bec6d3081ef5bf575ac3b7e7e065e

Contents?: true

Size: 692 Bytes

Versions: 3

Compression:

Stored size: 692 Bytes

Contents

require_relative "helper"
require_relative "lint/hyper_log_log"

class TestDistributedCommandsOnHyperLogLog < Test::Unit::TestCase

  include Helper::Distributed
  include Lint::HyperLogLog

  def test_pfmerge
    target_version "2.8.9" do
      assert_raise Redis::Distributed::CannotDistribute do
        r.pfadd "foo", "s1"
        r.pfadd "bar", "s2"

        assert r.pfmerge("res", "foo", "bar")
      end
    end
  end

  def test_pfcount_multiple_keys_diff_nodes
    target_version "2.8.9" do
      assert_raise Redis::Distributed::CannotDistribute do
        r.pfadd "foo", "s1"
        r.pfadd "bar", "s2"

        assert r.pfcount("res", "foo", "bar")
      end
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

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