Sha256: ef47f5803bbd772717f78c7474da53fb0aaa5d6a147b4e2d992094205d50a2f9
Contents?: true
Size: 478 Bytes
Versions: 23
Compression:
Stored size: 478 Bytes
Contents
# encoding: UTF-8 require File.expand_path("helper", File.dirname(__FILE__)) require "lint/lists" class TestCommandsOnLists < Test::Unit::TestCase include Helper::Client include Lint::Lists def test_rpoplpush r.rpush "foo", "s1" r.rpush "foo", "s2" assert_equal "s2", r.rpoplpush("foo", "bar") assert_equal ["s2"], r.lrange("bar", 0, -1) assert_equal "s1", r.rpoplpush("foo", "bar") assert_equal ["s1", "s2"], r.lrange("bar", 0, -1) end end
Version data entries
23 entries across 22 versions & 8 rubygems