Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ThijsBroersen committed Nov 29, 2024
1 parent c6ad7cd commit 7c31061
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ object ConfigurableDeriveCodecSpec extends ZIOSpecDefault {

case class OptionalField(a: Option[Int])

case class EmptyMap(a: Map[String, String])

case class EmptyList(a: List[String])

def spec = suite("ConfigurableDeriveCodecSpec")(
suite("defaults")(
suite("string")(
Expand Down Expand Up @@ -493,6 +489,7 @@ object ConfigurableDeriveCodecSpec extends ZIOSpecDefault {
assertTrue(expectedStr.fromJson[EmptyTreeSet].toOption.get == expectedObj, expectedObj.toJson == expectedStr)
},
test("for a list") {
case class EmptyList(a: List[Int])
val expectedStr = """{}"""
val expectedObj = EmptyList(List.empty)

Expand Down Expand Up @@ -553,6 +550,7 @@ object ConfigurableDeriveCodecSpec extends ZIOSpecDefault {
)
},
test("for a map") {
case class EmptyMap(a: Map[String, String])
val expectedStr = """{}"""
val expectedObj = EmptyMap(Map.empty)

Expand Down

0 comments on commit 7c31061

Please sign in to comment.