Skip to content

Commit 26c70af

Browse files
author
Hugo Hache
committed
Target new specs to version 7.2
1 parent 2e7c468 commit 26c70af

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

test/lint/sorted_sets.rb

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,10 @@ def test_zrank
226226
r.zadd "foo", 3, "s3"
227227

228228
assert_equal 2, r.zrank("foo", "s3")
229-
assert_equal [2, 3], r.zrank("foo", "s3", with_score: true)
230-
assert_equal [2, 3], r.zrank("foo", "s3", withscore: true)
229+
target_version "7.2" do
230+
assert_equal [2, 3], r.zrank("foo", "s3", with_score: true)
231+
assert_equal [2, 3], r.zrank("foo", "s3", withscore: true)
232+
end
231233
end
232234

233235
def test_zrevrank
@@ -236,8 +238,10 @@ def test_zrevrank
236238
r.zadd "foo", 3, "s3"
237239

238240
assert_equal 0, r.zrevrank("foo", "s3")
239-
assert_equal [0, 3], r.zrevrank("foo", "s3", with_score: true)
240-
assert_equal [0, 3], r.zrevrank("foo", "s3", withscore: true)
241+
target_version "7.2" do
242+
assert_equal [0, 3], r.zrevrank("foo", "s3", with_score: true)
243+
assert_equal [0, 3], r.zrevrank("foo", "s3", withscore: true)
244+
end
241245
end
242246

243247
def test_zrange

0 commit comments

Comments
 (0)