Skip to content

Commit

Permalink
Update munit, munit-scalacheck to 1.0.0 (#979)
Browse files Browse the repository at this point in the history
Co-authored-by: Michel Davit <[email protected]>
  • Loading branch information
scala-steward and RustedBones authored May 28, 2024
1 parent 75ae256 commit 71df285
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 31 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ val guavaVersion = "33.2.0-jre"
val hadoopVersion = "3.4.0"
val jacksonVersion = "2.17.1"
val jodaTimeVersion = "2.12.7"
val munitVersion = "0.7.29"
val munitVersion = "1.0.0"
val neo4jDriverVersion = "4.4.12"
val paigesVersion = "0.4.3"
val parquetVersion = "1.14.0"
Expand Down
32 changes: 2 additions & 30 deletions test/src/test/scala/magnolify/shared/EnumTypeSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package magnolify.shared
import magnolify.test.*
import magnolify.test.Simple.*

import scala.annotation.nowarn
import scala.util.{Properties, Try}

class EnumTypeSuite extends MagnolifySuite {
Expand Down Expand Up @@ -101,37 +100,10 @@ class EnumTypeSuite extends MagnolifySuite {
| ^
|""".stripMargin

@nowarn
val scala3Error =
"""|error:
|No given instance of type magnolify.shared.EnumType[Option[magnolify.test.ADT.Color]] was found for parameter et of method apply in object EnumType.
|I found:
|
| magnolify.shared.EnumType.gen[Option[magnolify.test.ADT.Color]](
| {
| final class $anon() extends Object(), Serializable {
| type MirroredMonoType = Option[magnolify.test.ADT.Color]
| }
| (new $anon():Object & Serializable)
| }.$asInstanceOf[
|
| scala.deriving.Mirror.Sum{
| type MirroredMonoType² = Option[magnolify.test.ADT.Color];
| type MirroredType = Option[magnolify.test.ADT.Color];
| type MirroredLabel = ("Option" : String);
| type MirroredElemTypes = (None.type, Some[magnolify.test.ADT.Color]);
| type MirroredElemLabels = (("None$" : String), ("Some" : String))
| }
|
| ]
| )
|
|But method gen in trait EnumTypeCompanionMacros1 does not match type magnolify.shared.EnumType[Option[magnolify.test.ADT.Color]]
"""|error: Cannot prove that Some[magnolify.test.ADT.Color] <:< Singleton.
|
|where: MirroredMonoType is a type in an anonymous class locally defined in class EnumTypeSuite which is an alias of Option[magnolify.test.ADT.Color]
| MirroredMonoType² is a type in trait Mirror with bounds""".stripMargin + " \n" + """|.
|EnumType[Option[ADT.Color]]
| ^
| ^
|""".stripMargin

if (Properties.versionNumberString.startsWith("2.12")) {
Expand Down

0 comments on commit 71df285

Please sign in to comment.