Skip to content

Commit 19480c7

Browse files
committed
add tests for NonEmptyAlternative
1 parent e7315d9 commit 19480c7

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Diff for: tests/shared/src/test/scala/cats/tests/IndexedReaderWriterStateTSuite.scala

+18
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,24 @@ class IndexedReaderWriterStateTSuite extends CatsSuite {
453453
)
454454
}
455455

456+
{
457+
implicit val LWM: Monad[ListWrapper] = ListWrapper.monad
458+
459+
val SA = {
460+
implicit val LWA: NonEmptyAlternative[ListWrapper] = ListWrapper.nonEmptyAlternative
461+
NonEmptyAlternative[IRWST[ListWrapper, Boolean, String, MiniInt, MiniInt, *]]
462+
}
463+
464+
checkAll(
465+
"IndexedReaderWriterStateT[ListWrapper, Boolean, String, MiniInt, MiniInt, *]",
466+
NonEmptyAlternativeTests(SA).nonEmptyAlternative[Int, Int, Int]
467+
)
468+
checkAll(
469+
"NonEmptyAlternativeTests[IndexedReaderWriterStateT[ListWrapper, Boolean, String, MiniInt, MiniInt, *]]",
470+
SerializableTests.serializable(SA)
471+
)
472+
}
473+
456474
{
457475
implicit val LWM: Monad[ListWrapper] = ListWrapper.monad
458476

0 commit comments

Comments
 (0)