Skip to content

Commit

Permalink
add tests for NonEmptyAlternative
Browse files Browse the repository at this point in the history
  • Loading branch information
satorg committed Nov 1, 2022
1 parent e662031 commit 5315b2a
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,24 @@ class IndexedReaderWriterStateTSuite extends CatsSuite {
)
}

{
implicit val LWM: Monad[ListWrapper] = ListWrapper.monad

val SA = {
implicit val LWA: NonEmptyAlternative[ListWrapper] = ListWrapper.nonEmptyAlternative
NonEmptyAlternative[IRWST[ListWrapper, Boolean, String, MiniInt, MiniInt, *]]
}

checkAll(
"IndexedReaderWriterStateT[ListWrapper, Boolean, String, MiniInt, MiniInt, *]",
NonEmptyAlternativeTests(SA).nonEmptyAlternative[Int, Int, Int]
)
checkAll(
"NonEmptyAlternativeTests[IndexedReaderWriterStateT[ListWrapper, Boolean, String, MiniInt, MiniInt, *]]",
SerializableTests.serializable(SA)
)
}

{
implicit val LWM: Monad[ListWrapper] = ListWrapper.monad

Expand Down

0 comments on commit 5315b2a

Please sign in to comment.