Skip to content

Commit

Permalink
Add hmGet to the tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
arturaz committed Sep 15, 2020
1 parent 01d55ef commit a53dd6b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ trait TestScenarios {
def hashesScenario(cmd: RedisCommands[IO, String, String]): IO[Unit] = {
val testKey = "foo"
val testField = "bar"
val testField2 = "baz"
for {
x <- cmd.hGet(testKey, testField)
_ <- IO(assert(x.isEmpty))
Expand All @@ -70,6 +71,8 @@ trait TestScenarios {
_ <- IO(assert(!isSet2))
w <- cmd.hGet(testKey, testField)
_ <- IO(assert(w.contains("some value")))
w <- cmd.hmGet(testKey, testField, testField2)
_ <- IO(assert(w == Map(testField -> "some value")))
_ <- cmd.hDel(testKey, testField)
z <- cmd.hGet(testKey, testField)
_ <- IO(assert(z.isEmpty))
Expand Down

0 comments on commit a53dd6b

Please sign in to comment.