This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //> using scala 2.13.18 | |
| //> using dep "org.scalameta::scalameta::4.14.2" | |
| import scala.meta._ | |
| val fooType = t"Foo" | |
| val code = q""" | |
| type Bar = ${fooType} | |
| val qux = "any message" | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //> using scala 2.13.18 | |
| //> using dep "org.scalameta::scalameta::4.14.3" | |
| // Affected versions: 4.14.3, 4.14.4, 4.14.5 | |
| // Note that 4.14.2 is correct | |
| import scala.meta._ | |
| // codeA has a type substitution | |
| val fooType = t"Foo" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //> using scala 3.7.4 | |
| //> using dep "org.typelevel::weaver-cats::0.11.3" | |
| import weaver.* | |
| import cats.effect.* | |
| object ShutdownSuite extends SimpleIOSuite with Expectations.Helpers { | |
| private val shutdownHook: Resource[IO, Unit] = Resource.onFinalize(IO.println("Shutting down.")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //> using scala 3.7.3 | |
| //> using repository ivy2Local | |
| //> using dep "org.typelevel::weaver-cats::0.10.1" | |
| import weaver.* | |
| case class Address(country: String, city: String) | |
| case class Person(address: Address) | |
| val expected = List( | |
| Person(Address("UK", "London")), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //> using scala "3.7.0" | |
| //> using test.dep org.typelevel::weaver-cats::0.11-5acfd6a-SNAPSHOT | |
| //> using repository "https://central.sonatype.com/repository/maven-snapshots" | |
| import cats.effect.* | |
| import cats.* | |
| import cats.data.OptionT | |
| import weaver.* | |
| import fs2.* | |
| type MyEffect[A] = OptionT[IO, A] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //> using scala "3.7.0" | |
| //> using platform native | |
| //> using repository "https://central.sonatype.com/repository/maven-snapshots" | |
| // The linking error occurs in the latest published version: | |
| //> using nativeVersion 0.4.17 | |
| //> using dep org.typelevel::weaver-cats::0.10.1 | |
| // They also occur in the 0.5 version, regardless of the version of munit-diff: | |
| // using nativeVersion 0.5.7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //> using scala "3.7.3" | |
| //> using test.dep org.typelevel::weaver-cats::0.10.1 | |
| //> using test.dep org.typelevel::weaver-discipline::0.10.1 | |
| import weaver.* | |
| import weaver.discipline.* | |
| import cats.effect.IO | |
| object DisciplineBug extends SimpleIOSuite with DisciplineFSuite[IO] { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //> using scala "3.7.3" | |
| //> using test.dep org.typelevel::weaver-cats::0.10.1 | |
| //> using test.dep org.typelevel::weaver-scalacheck::0.10.1 | |
| import weaver.* | |
| import weaver.scalacheck.* | |
| import org.scalacheck.rng.Seed | |
| object CheckersBug extends SimpleIOSuite with Checkers { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //> using scala "3.7.0" | |
| //> using dep "org.typelevel::weaver-cats::0.10.1" | |
| //> using dep "org.typelevel::weaver-scalacheck::0.10.1" | |
| import org.scalacheck.{Arbitrary, Gen} | |
| import weaver.* | |
| import weaver.scalacheck.* | |
| object NonTerminatingSuite extends SimpleIOSuite with Checkers: | |
| test("Fix me") { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //> using scala "3.7.0" | |
| //> using dep "org.typelevel::weaver-cats::0.10.0" | |
| import weaver.* | |
| object MySuite extends FunSuite: | |
| test("parse and compare valid semver"): | |
| expect.all( | |
| 1 > 2 | |
| ) |
NewerOlder