1
0
Fork 0

Adding upstream version 1.9.1.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-09 16:57:44 +01:00
parent 2bf0435a35
commit 031879240c
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
356 changed files with 26924 additions and 0 deletions

View file

@ -0,0 +1,45 @@
def test_hdel(judge_command):
judge_command("HDEL foo bar", {"command": "HDEL", "key": "foo", "fields": "bar"})
judge_command(
"HDEL foo bar hello world",
{"command": "HDEL", "key": "foo", "fields": "bar hello world"},
)
def test_hmset(judge_command):
judge_command(
"HMSET foo bar hello-world",
{"command": "HMSET", "key": "foo", "field": "bar", "value": "hello-world"},
)
judge_command(
"HMSET foo bar hello-world key2 value2",
{"command": "HMSET", "key": "foo", "field": "key2", "value": "value2"},
)
def test_hexists(judge_command):
judge_command(
"HEXISTS foo bar", {"command": "HEXISTS", "key": "foo", "field": "bar"}
)
judge_command("HEXISTS foo bar hello-world", None)
def test_hincrby(judge_command):
judge_command(
"HINCRBY foo bar 12",
{"command": "HINCRBY", "key": "foo", "field": "bar", "delta": "12"},
)
def test_hincrbyfloat(judge_command):
judge_command(
"HINCRBYFLOAT foo bar 12.1",
{"command": "HINCRBYFLOAT", "key": "foo", "field": "bar", "float": "12.1"},
)
def test_hset(judge_command):
judge_command(
"HSET foo bar hello",
{"command": "HSET", "key": "foo", "field": "bar", "value": "hello"},
)