From 2f53e1ebbce48021a3df954345a588bd09ee9c49 Mon Sep 17 00:00:00 2001 From: satorg Date: Mon, 31 Oct 2022 01:17:19 -0700 Subject: [PATCH] refactor tests for Alternative --- .../IndexedReaderWriterStateTSuite.scala | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/tests/shared/src/test/scala/cats/tests/IndexedReaderWriterStateTSuite.scala b/tests/shared/src/test/scala/cats/tests/IndexedReaderWriterStateTSuite.scala index 9580660727f..efd8ecdc45f 100644 --- a/tests/shared/src/test/scala/cats/tests/IndexedReaderWriterStateTSuite.scala +++ b/tests/shared/src/test/scala/cats/tests/IndexedReaderWriterStateTSuite.scala @@ -454,19 +454,20 @@ class IndexedReaderWriterStateTSuite extends CatsSuite { } { - implicit val G: Monad[ListWrapper] = ListWrapper.monad + implicit val LWM: Monad[ListWrapper] = ListWrapper.monad - val SA = IRWST.catsDataAlternativeForIRWST[ListWrapper, Boolean, String, MiniInt](ListWrapper.monad, - ListWrapper.alternative, - Monoid[String] - ) + val SA = { + implicit val LWA: Alternative[ListWrapper] = ListWrapper.alternative + Alternative[IRWST[ListWrapper, Boolean, String, MiniInt, MiniInt, *]] + } checkAll( - "IndexedReaderWriterStateT[ListWrapper, String, String, Int, Int, *]", - AlternativeTests[IRWST[ListWrapper, Boolean, String, MiniInt, MiniInt, *]](SA).alternative[Int, Int, Int] + "IndexedReaderWriterStateT[ListWrapper, Boolean, String, MiniInt, MiniInt, *]", + AlternativeTests(SA).alternative[Int, Int, Int] ) - checkAll("Alternative[IndexedReaderWriterStateT[ListWrapper, String, String, Int, Int, *]]", - SerializableTests.serializable(SA) + checkAll( + "Alternative[IndexedReaderWriterStateT[ListWrapper, Boolean, String, MiniInt, MiniInt, *]]", + SerializableTests.serializable(SA) ) }