Sha256: 790d0cfa2580ecfd2bbc067ce34b223a5d3926c1e94ba909aafad8c4985fc0f7

Contents?: true

Size: 337 Bytes

Versions: 11

Compression:

Stored size: 337 Bytes

Contents

# encoding: UTF-8

require "helper"
require "lint/sorted_sets"

class TestDistributedCommandsOnSortedSets < Test::Unit::TestCase

  include Helper::Distributed
  include Lint::SortedSets

  def test_zcount
    r.zadd "foo", 1, "s1"
    r.zadd "foo", 2, "s2"
    r.zadd "foo", 3, "s3"

    assert_equal 2, r.zcount("foo", 2, 3)
  end
end

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
redis-3.0.5 test/distributed_commands_on_sorted_sets_test.rb
sidekiq-statsd-0.1.1 vendor/ruby/1.9.1/gems/redis-3.0.4/test/distributed_commands_on_sorted_sets_test.rb
sidekiq-statsd-0.1.0 vendor/ruby/1.9.1/gems/redis-3.0.4/test/distributed_commands_on_sorted_sets_test.rb
redis-3.0.4 test/distributed_commands_on_sorted_sets_test.rb
redis-3.0.3 test/distributed_commands_on_sorted_sets_test.rb
remq-0.0.4 vendor/bundle/gems/redis-3.0.2/test/distributed_commands_on_sorted_sets_test.rb
remq-0.0.3 vendor/bundle/gems/redis-3.0.2/test/distributed_commands_on_sorted_sets_test.rb
redis-3.0.2 test/distributed_commands_on_sorted_sets_test.rb
redis-3.0.1 test/distributed_commands_on_sorted_sets_test.rb
redis-3.0.0 test/distributed_commands_on_sorted_sets_test.rb
redis-3.0.0.rc2 test/distributed_commands_on_sorted_sets_test.rb