Sha256: 71960b436c23c4464f01aba24a472b5f3594cfacf92929e9942563380f204dbc

Contents?: true

Size: 380 Bytes

Versions: 2

Compression:

Stored size: 380 Bytes

Contents

# encoding: UTF-8

require File.expand_path("./helper", File.dirname(__FILE__))
require "redis/distributed"

setup do
  log = StringIO.new
  init Redis::Distributed.new(NODES, :logger => ::Logger.new(log))
end

load './test/lint/sorted_sets.rb'

test "ZCOUNT" do |r|
  r.zadd "foo", 1, "s1"
  r.zadd "foo", 2, "s2"
  r.zadd "foo", 3, "s3"

  assert 2 == r.zcount("foo", 2, 3)
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
gorsuch-redis-3.0.0.rc1 test/distributed_commands_on_sorted_sets_test.rb
redis-3.0.0.rc1 test/distributed_commands_on_sorted_sets_test.rb