From a53dd6b3f88b68cc3167d6308c999228970fa5fe Mon Sep 17 00:00:00 2001 From: Arturas Slajus Date: Tue, 15 Sep 2020 15:53:37 +0300 Subject: [PATCH] Add hmGet to the tests. --- .../test/scala/dev/profunktor/redis4cats/TestScenarios.scala | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/tests/src/test/scala/dev/profunktor/redis4cats/TestScenarios.scala b/modules/tests/src/test/scala/dev/profunktor/redis4cats/TestScenarios.scala index 30b54ebe..50bd3e22 100644 --- a/modules/tests/src/test/scala/dev/profunktor/redis4cats/TestScenarios.scala +++ b/modules/tests/src/test/scala/dev/profunktor/redis4cats/TestScenarios.scala @@ -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)) @@ -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))