Skip to content

Commit

Permalink
Merge pull request #607 from pureconfig/minor-fixes
Browse files Browse the repository at this point in the history
Minor fixes
  • Loading branch information
jcazevedo committed Oct 7, 2019
2 parents 457173c + e56bd55 commit d3e8f50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ lazy val commonSettings = Seq(
scalacOptions in Test ~= { _.filterNot(_.contains("-Ywarn-unused")) },
scalacOptions in Test += "-Xmacro-settings:materialize-derivations",

scalacOptions in (Compile, console) --= Seq("-Xfatal-warnings", "-Ywarn-unused-import"),
scalacOptions in (Compile, console) --= Seq("-Xfatal-warnings", "-Ywarn-unused-import", "-Ywarn-unused:_,-implicits"),
scalacOptions in (Test, console) := (scalacOptions in (Compile, console)).value,
scalacOptions in Tut --= Seq("-Ywarn-unused-import", "-Xmacro-settings:materialize-derivations"),

Expand Down
5 changes: 1 addition & 4 deletions tests/src/main/scala/pureconfig/ConfigConvertChecks.scala
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,7 @@ trait ConfigConvertChecks { this: FlatSpec with Matchers with ScalaCheckDrivenPr
for ((value, errors) <- valuesToErrors) {
it should s"fail when it tries to read a value of type ${tpe.tpe} " +
s"from ${value.render(ConfigRenderOptions.concise())}" in {
val result = cr.from(value)
val errorList = errors.toList
result.left.value.toList.size shouldEqual errorList.size
result.left.value.toList should contain theSameElementsAs errorList
cr.from(value).left.value.toList should contain theSameElementsAs errors.toList
}
}
}

0 comments on commit d3e8f50

Please sign in to comment.