Skip to content

Commit

Permalink
tests showing it works for primitives
Browse files Browse the repository at this point in the history
  • Loading branch information
mcgizzle committed Jul 9, 2019
1 parent 5365044 commit 5dd5c8c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,15 @@ class MixerSpec extends FlatSpec with Matchers {
Mixer[A1, A1].mix(A1(5, "hello")) shouldBe A1(5, "hello")
}

it should "select smaller type from larger for primitives" in {
implicitly[Mixer[(String, Int), Int]]
implicitly[Mixer[(String, Int), String]]

This comment has been minimized.

Copy link
@jdrphillips

jdrphillips Jul 9, 2019

Collaborator

👍

}

it should "select smaller type from larger for non-primitives" in {

@Atomic class A
@Atomic class B
@Atomic class Bgit

This comment has been minimized.

Copy link
@jdrphillips

jdrphillips Jul 9, 2019

Collaborator

👎


pendingUntilFixed{
"implicitly[Mixer[(A, B), B]]" should compile
Expand Down

0 comments on commit 5dd5c8c

Please sign in to comment.