lib/fakeredis/zset.rb in fakeredis-0.7.0 vs lib/fakeredis/zset.rb in fakeredis-0.8.0
- old
+ new
@@ -15,10 +15,10 @@
end
def select_by_score min, max
min = _floatify(min, true)
max = _floatify(max, false)
- reject {|_,v| v < min || v > max }
+ select {|_,v| v >= min && v <= max }
end
private
# Originally lifted from redis-rb