Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
ThijsBroersen committed Oct 9, 2024
1 parent 35cfda6 commit 4a26618
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,19 @@ object AutoDerivationSealedTraitPureConfig extends App with EitherImpureOps {
AppConfig(AwsConfig(Trait1SubClass1("b", RandomCaseClass("hi"))), "l")
)

// val s2: String =
// """
// |field = SubObject1
// |""".stripMargin
val s2: String =
"""
|field = SubObject1
|""".stripMargin

// assert(read(deriveConfig[AwsConfig] from TypesafeConfigProvider.fromHoconString(s2)) equalM AwsConfig(SubObject1))
assert(read(deriveConfig[AwsConfig] from TypesafeConfigProvider.fromHoconString(s2)) equalM AwsConfig(SubObject1))

// val s3: String =
// """
// |field = randomcustomname
// |""".stripMargin
val s3: String =
"""
|field = randomcustomname
|""".stripMargin

// assert(read(deriveConfig[AwsConfig] from TypesafeConfigProvider.fromHoconString(s3)) equalM AwsConfig(SubObject2))
assert(read(deriveConfig[AwsConfig] from TypesafeConfigProvider.fromHoconString(s3)) equalM AwsConfig(SubObject2))

val s4: String =
"""
Expand Down

0 comments on commit 4a26618

Please sign in to comment.