Skip to content

Commit

Permalink
Merge pull request #570 from ceedubs/freeapp-cinnabon
Browse files Browse the repository at this point in the history
Add syntax test for |@| on FreeApplicative
  • Loading branch information
fthomas committed Oct 15, 2015
2 parents 757ff73 + 8b35ded commit cb804ce
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions free/src/test/scala/cats/free/FreeApplicativeTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,14 @@ class FreeApplicativeTests extends CatsSuite {
}
r1.foldMap(nt) should === (r2.foldMap(nt))
}

// Ensure that syntax and implicit resolution work as expected.
// If it compiles, it passes the "test".
object SyntaxTests {

// fixed by #568
val fli1 = FreeApplicative.lift[List, Int](List(1, 3, 5, 7))
val fli2 = FreeApplicative.lift[List, Int](List(1, 3, 5, 7))
(fli1 |@| fli2).map(_ + _)
}
}

0 comments on commit cb804ce

Please sign in to comment.