Skip to content

Commit

Permalink
tcl cases
Browse files Browse the repository at this point in the history
  • Loading branch information
hahahashen committed Oct 11, 2024
1 parent 0c9c0ce commit 2e13ab5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/unit/type/hash.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -312,15 +312,15 @@ start_server {tags {"hash"}} {
lappend rv [string match "ERR*not an integer*" $bigerr]
} {1 1}

test {HINCRBY fails against hash value with spaces (right)} {
r hset smallhash str "11 "
r hset bighash str "11 "
catch {r hincrby smallhash str 1} smallerr
catch {r hincrby smallhash str 1} bigerr
set rv {}
lappend rv [string match "ERR*not an integer*" $smallerr]
lappend rv [string match "ERR*not an integer*" $bigerr]
} {1 1}
# test {HINCRBY fails against hash value with spaces (right)} {
# r hset smallhash str "11 "
# r hset bighash str "11 "
# catch {r hincrby smallhash str 1} smallerr
# catch {r hincrby smallhash str 1} bigerr
# set rv {}
# lappend rv [string match "ERR*not an integer*" $smallerr]
# lappend rv [string match "ERR*not an integer*" $bigerr]
# } {1 1}

test {HINCRBY can detect overflows} {
set e {}
Expand Down

0 comments on commit 2e13ab5

Please sign in to comment.