redict/tests/unit/type
Binbin b8a5da80c4
Fix accidental deletion of sinterstore command when we meet wrong type error. (#9032)
SINTERSTORE would have deleted the dest key right away,
even when later on it is bound to fail on an (WRONGTYPE) error.

With this change it first picks up all the input keys, and only later
delete the dest key if one is empty.

Also add more tests for some commands.
Mainly focus on 
- `wrong type error`: 
	expand test case (base on sinter bug) in non-store variant
	add tests for store variant (although it exists in non-store variant, i think it would be better to have same tests)
- the dstkey result when we meet `non-exist key (empty set)` in *store

sdiff:
- improve test case about wrong type error (the one we found in sinter, although it is safe in sdiff)
- add test about using non-exist key (treat it like an empty set)
sdiffstore:
- according to sdiff test case, also add some tests about `wrong type error` and `non-exist key`
- the different is that in sdiffstore, we will consider the `dstkey` result

sunion/sunionstore add more tests (same as above)

sinter/sinterstore also same as above ...
2021-06-13 10:53:46 +03:00
..
hash.tcl Improve test suite to handle external servers better. (#9033) 2021-06-09 15:13:24 +03:00
incr.tcl Improve test suite to handle external servers better. (#9033) 2021-06-09 15:13:24 +03:00
list-2.tcl Minor improvements for list-2 test (#8156) 2020-12-08 16:26:38 +02:00
list-3.tcl Improve test suite to handle external servers better. (#9033) 2021-06-09 15:13:24 +03:00
list-common.tcl list test split into smaller parts 2011-07-11 11:30:46 +02:00
list.tcl Improve test suite to handle external servers better. (#9033) 2021-06-09 15:13:24 +03:00
set.tcl Fix accidental deletion of sinterstore command when we meet wrong type error. (#9032) 2021-06-13 10:53:46 +03:00
stream-cgroups.tcl Fixed some typos, add a spell check ci and others minor fix (#8890) 2021-06-10 15:39:33 +03:00
stream.tcl Improve test suite to handle external servers better. (#9033) 2021-06-09 15:13:24 +03:00
string.tcl Improve test suite to handle external servers better. (#9033) 2021-06-09 15:13:24 +03:00
zset.tcl Improve test suite to handle external servers better. (#9033) 2021-06-09 15:13:24 +03:00