Sha256: 8140da725d474974b85bd25faecbbd280f133cd6c0ff36769968dc010260cc05

Contents?: true

Size: 433 Bytes

Versions: 19

Compression:

Stored size: 433 Bytes

Contents

# encoding: UTF-8

require File.expand_path("helper", File.dirname(__FILE__))
require "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

19 entries across 18 versions & 7 rubygems

Version Path
finsync_redis-3.3.5 test/commands_on_hyper_log_log_test.rb
redis-3.3.5 test/commands_on_hyper_log_log_test.rb
logstash-filter-cache-redis-0.3.1 vendor/bundle/jruby/1.9/gems/redis-3.3.3/test/commands_on_hyper_log_log_test.rb
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/redis-3.3.3/test/commands_on_hyper_log_log_test.rb
logstash-filter-cache-redis-0.2.0 vendor/bundle/jruby/1.9/gems/redis-3.3.3/test/commands_on_hyper_log_log_test.rb
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/redis-3.3.3/test/commands_on_hyper_log_log_test.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/redis-3.3.3/test/commands_on_hyper_log_log_test.rb
redis-3.3.3 test/commands_on_hyper_log_log_test.rb
abaci-0.3.0 vendor/bundle/gems/redis-3.3.1/test/commands_on_hyper_log_log_test.rb
abaci-0.3.0 vendor/bundle/gems/redis-3.3.2/test/commands_on_hyper_log_log_test.rb
redis-3.3.2 test/commands_on_hyper_log_log_test.rb
redis-3.3.1 test/commands_on_hyper_log_log_test.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/redis-3.3.0/test/commands_on_hyper_log_log_test.rb
redis-3.3.0 test/commands_on_hyper_log_log_test.rb
discourse-redis-3.2.2 test/commands_on_hyper_log_log_test.rb
redis-3.2.2 test/commands_on_hyper_log_log_test.rb
redis-3.2.1 test/commands_on_hyper_log_log_test.rb
redis-3.2.0 test/commands_on_hyper_log_log_test.rb
redis-3.1.0 test/commands_on_hyper_log_log_test.rb