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 | |
| ) |
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
| package fix | |
| import scalafix.v1._ | |
| import scala.meta._ | |
| class RenameExpectToExpectSame extends SemanticRule("RenameExpectToExpectSame") { | |
| override def fix(implicit doc: SemanticDocument): Patch = { | |
| val expectMethod = | |
| SymbolMatcher.normalized("weaver/Expectations.Helpers#expect.") | |
| doc.tree.collect { |
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 "com.github.zainab-ali::aquascape::0.4.0" | |
| import fs2.* | |
| import cats.effect.* | |
| import aquascape.* | |
| import aquascape.drawing.* | |
| import scala.concurrent.duration.* | |
| object MeteredParEvalMapUnbounded extends AquascapeApp { |
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 dep com.indoorvivants::decline-derive::latest.release | |
| import decline_derive.* | |
| case class Attributes( | |
| @Name("intro-slides") | |
| introSlides: String, | |
| @Name("venue") | |
| venue: String, | |
| @Name("venue-bsky") | |
| venueBsky: String, |
NewerOlder