We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e7c468 commit 26c70afCopy full SHA for 26c70af
test/lint/sorted_sets.rb
@@ -226,8 +226,10 @@ def test_zrank
226
r.zadd "foo", 3, "s3"
227
228
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)
+ target_version "7.2" do
+ assert_equal [2, 3], r.zrank("foo", "s3", with_score: true)
231
+ assert_equal [2, 3], r.zrank("foo", "s3", withscore: true)
232
+ end
233
end
234
235
def test_zrevrank
@@ -236,8 +238,10 @@ def test_zrevrank
236
238
237
239
240
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)
241
242
+ assert_equal [0, 3], r.zrevrank("foo", "s3", with_score: true)
243
+ assert_equal [0, 3], r.zrevrank("foo", "s3", withscore: true)
244
245
246
247
def test_zrange
0 commit comments