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 Oct 31, 2022
1 parent 2f53e1e commit 18de9a4
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 18de9a4

Please sign in to comment.