Skip to content

Commit

Permalink
fix tests to match on not compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
mcgizzle committed Jul 9, 2019
1 parent e3d1c87 commit 5365044
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,22 @@ class MixerSpec extends FlatSpec with Matchers {
@Atomic class A
@Atomic class B

pendingUntilFixed(illTyped("""Mixer[(A, B), B]"""))
pendingUntilFixed{
"implicitly[Mixer[(A, B), B]]" should compile
}

@Atomic trait C
@Atomic trait D

implicitly[Mixer[(C, D), D]]
implicitly[Mixer[(C, D), C]]

@Atomic case class E()
@Atomic case class F()

pendingUntilFixed(illTyped("""Mixer[(E, F), F]"""))
pendingUntilFixed{
"implicitly[Mixer[(E, F), F]]" should compile
}
}

it should "not work on mis-matched simple types" in {
Expand Down

0 comments on commit 5365044

Please sign in to comment.