@@ -207,19 +207,19 @@ specFor keyType valueType = do
207207 @ k @ v @ v & property
208208
209209 describe " MapAccumWithKeyL" $ do
210- it " prop_mapAccumWithKeyL @Int" $
211- prop_mapAccumWithKeyL @ Int
210+ it " prop_mapAccumLWithKey @Int" $
211+ prop_mapAccumLWithKey @ Int
212212 @ k @ v @ v & property
213- it " prop_mapAccumWithKeyL @String" $
214- prop_mapAccumWithKeyL @ String
213+ it " prop_mapAccumLWithKey @String" $
214+ prop_mapAccumLWithKey @ String
215215 @ k @ v @ v & property
216216
217217 describe " MapAccumWithKeyR" $ do
218- it " prop_mapAccumWithKeyR @Int" $
219- prop_mapAccumWithKeyR @ Int
218+ it " prop_mapAccumRWithKey @Int" $
219+ prop_mapAccumRWithKey @ Int
220220 @ k @ v @ v & property
221- it " prop_mapAccumWithKeyR @String" $
222- prop_mapAccumWithKeyR @ String
221+ it " prop_mapAccumRWithKey @String" $
222+ prop_mapAccumRWithKey @ String
223223 @ k @ v @ v & property
224224
225225--------------------------------------------------------------------------------
@@ -534,33 +534,33 @@ prop_mapAccumR (applyFun2 -> f) s0 kvs =
534534-- MapAccumWithKey
535535--------------------------------------------------------------------------------
536536
537- prop_mapAccumWithKeyL
537+ prop_mapAccumLWithKey
538538 :: forall s k v1 v2 . (Eq s , Eq v2 , Ord k , Show k , Show s , Show v2 )
539539 => Fun (s , k , v1 ) (s , v2 )
540540 -> s
541541 -> [(k , v1 )]
542542 -> Property
543- prop_mapAccumWithKeyL (applyFun3 -> f) s0 kvs =
543+ prop_mapAccumLWithKey (applyFun3 -> f) s0 kvs =
544544 (===)
545- (RMap. toList <$> rmapAccumWithKeyL f s0 (RMap. fromList kvs))
546- (OMap. toList <$> omapAccumWithKeyL f s0 (OMap. fromList kvs))
545+ (RMap. toList <$> rmapAccumLWithKey f s0 (RMap. fromList kvs))
546+ (OMap. toList <$> omapAccumLWithKey f s0 (OMap. fromList kvs))
547547 where
548- rmapAccumWithKeyL = RMap. mapAccumWithKeyL
549- omapAccumWithKeyL = OMap. mapAccumWithKey
548+ rmapAccumLWithKey = RMap. mapAccumLWithKey
549+ omapAccumLWithKey = OMap. mapAccumWithKey
550550
551- prop_mapAccumWithKeyR
551+ prop_mapAccumRWithKey
552552 :: forall s k v1 v2 . (Eq s , Eq v2 , Ord k , Show k , Show s , Show v2 )
553553 => Fun (s , k , v1 ) (s , v2 )
554554 -> s
555555 -> [(k , v1 )]
556556 -> Property
557- prop_mapAccumWithKeyR (applyFun3 -> f) s0 kvs =
557+ prop_mapAccumRWithKey (applyFun3 -> f) s0 kvs =
558558 (===)
559- (RMap. toList <$> rmapAccumWithKeyR f s0 (RMap. fromList kvs))
560- (OMap. toList <$> omapAccumWithKeyR f s0 (OMap. fromList kvs))
559+ (RMap. toList <$> rmapAccumRWithKey f s0 (RMap. fromList kvs))
560+ (OMap. toList <$> omapAccumRWithKey f s0 (OMap. fromList kvs))
561561 where
562- rmapAccumWithKeyR = RMap. mapAccumWithKeyR
563- omapAccumWithKeyR = OMap. mapAccumRWithKey
562+ rmapAccumRWithKey = RMap. mapAccumRWithKey
563+ omapAccumRWithKey = OMap. mapAccumRWithKey
564564
565565--------------------------------------------------------------------------------
566566-- Arbitrary instances
0 commit comments