redis/tests/unit/type
Binbin 39feee8e3a
LPOP/RPOP with count against non existing list return null array (#10095)
It used to return `$-1` in RESP2, now we will return `*-1`.
This is a bug in redis 6.2 when COUNT was added, the `COUNT`
option was introduced in #8179. Fix #10089.

the documentation of [LPOP](https://redis.io/commands/lpop) says
```
When called without the count argument:
Bulk string reply: the value of the first element, or nil when key does not exist.

When called with the count argument:
Array reply: list of popped elements, or nil when key does not exist.
```
2022-01-11 14:26:13 +02:00
..
hash.tcl Tests: don't rely on the response of MEMORY USAGE when mem_allocator is not jemalloc (#10010) 2021-12-27 21:37:21 +02:00
incr.tcl decrby LLONG_MIN caused nagation overflow. (#9577) 2021-10-03 09:38:05 +03:00
list-2.tcl Minor improvements for list-2 test (#8156) 2020-12-08 16:26:38 +02:00
list-3.tcl Fix abnormal compression due to out-of-control recompress (#9849) 2021-11-29 07:57:01 +02:00
list-common.tcl list test split into smaller parts 2011-07-11 11:30:46 +02:00
list.tcl LPOP/RPOP with count against non existing list return null array (#10095) 2022-01-11 14:26:13 +02:00
set.tcl Fix possible int overflow when hashing an sds. (#9916) 2021-12-13 21:16:25 +02:00
stream-cgroups.tcl Add tests for blocking XREAD[GROUP] when the stream ran dry (#10035) 2022-01-04 21:48:49 +02:00
stream.tcl lpGetInteger returns int64_t, avoid overflow (#10068) 2022-01-07 15:31:05 +02:00
string.tcl Add external test that runs without debug command (#9964) 2021-12-19 17:41:51 +02:00
zset.tcl Add external test that runs without debug command (#9964) 2021-12-19 17:41:51 +02:00