Fixed syntax on ZRevRangeByLex test.

This commit is contained in:
Jeff Pierce 2015-08-25 12:18:17 -07:00
parent 5498ba400d
commit 7cafa2f3a5
1 changed files with 2 additions and 2 deletions

View File

@ -2230,12 +2230,12 @@ var _ = Describe("Commands", func() {
Expect(err).NotTo(HaveOccurred()) Expect(err).NotTo(HaveOccurred())
Expect(vals).To(Equal([]string{"c", "b", "a"})) Expect(vals).To(Equal([]string{"c", "b", "a"}))
vals, err := client.ZRevRangeByLex( vals, err = client.ZRevRangeByLex(
"zset", redis.ZRangeByScore{Max: "[b", Min: "(a"}).Result() "zset", redis.ZRangeByScore{Max: "[b", Min: "(a"}).Result()
Expect(err).NotTo(HaveOccurred()) Expect(err).NotTo(HaveOccurred())
Expect(vals).To(Equal([]string{"b"})) Expect(vals).To(Equal([]string{"b"}))
vals, err := client.ZRevRangeByLex( vals, err = client.ZRevRangeByLex(
"zset", redis.ZRangeByScore{Max: "(b", Min: "(a"}).Result() "zset", redis.ZRangeByScore{Max: "(b", Min: "(a"}).Result()
Expect(err).NotTo(HaveOccurred()) Expect(err).NotTo(HaveOccurred())
Expect(vals).To(Equal([]string{})) Expect(vals).To(Equal([]string{}))