Skip to content

Commit

Permalink
Target new specs to version 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Hache committed Dec 9, 2024
1 parent 2e7c468 commit 26c70af
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/lint/sorted_sets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,10 @@ def test_zrank
r.zadd "foo", 3, "s3"

assert_equal 2, r.zrank("foo", "s3")
assert_equal [2, 3], r.zrank("foo", "s3", with_score: true)
assert_equal [2, 3], r.zrank("foo", "s3", withscore: true)
target_version "7.2" do
assert_equal [2, 3], r.zrank("foo", "s3", with_score: true)
assert_equal [2, 3], r.zrank("foo", "s3", withscore: true)
end
end

def test_zrevrank
Expand All @@ -236,8 +238,10 @@ def test_zrevrank
r.zadd "foo", 3, "s3"

assert_equal 0, r.zrevrank("foo", "s3")
assert_equal [0, 3], r.zrevrank("foo", "s3", with_score: true)
assert_equal [0, 3], r.zrevrank("foo", "s3", withscore: true)
target_version "7.2" do
assert_equal [0, 3], r.zrevrank("foo", "s3", with_score: true)
assert_equal [0, 3], r.zrevrank("foo", "s3", withscore: true)
end
end

def test_zrange
Expand Down

0 comments on commit 26c70af

Please sign in to comment.