Skip to content

Commit 592b6b3

Browse files
committed
refactor: Match actual function names in hedgehog output
This should have been done back when `forDef` etc. acquired their current names.
1 parent 2e5cb55 commit 592b6b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

primer/test/Tests/Action/Available.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,18 +263,18 @@ tasty_available_actions_accepted = withTests 500 $
263263
fmap (first (SelectionDef . DefSelection defName) . snd) . forAllWithT fst $
264264
Gen.frequency $
265265
catMaybes
266-
[ Just (1, pure ("actionsForDef", (Nothing, Available.forDef (snd <$> allDefs) l defMut defName)))
266+
[ Just (1, pure ("forDef", (Nothing, Available.forDef (snd <$> allDefs) l defMut defName)))
267267
, defAST def <&> \d' -> (2,) $ do
268268
let ty = astDefType d'
269269
ids = ty ^.. typeIDs
270270
i <- Gen.element ids
271-
let hedgehogMsg = "actionsForDefSig id " <> show i
271+
let hedgehogMsg = "forSig id " <> show i
272272
pure (hedgehogMsg, (Just $ NodeSelection SigNode i, Available.forSig l defMut ty i))
273273
, defAST def <&> \d' -> (7,) $ do
274274
let expr = astDefExpr d'
275275
ids = expr ^.. exprIDs
276276
i <- Gen.element ids
277-
let hedgehogMsg = "actionsForDefBody id " <> show i
277+
let hedgehogMsg = "forBody id " <> show i
278278
pure (hedgehogMsg, (Just $ NodeSelection BodyNode i, Available.forBody (snd <$> progAllTypeDefs (appProg a)) l defMut expr i))
279279
]
280280
case acts of

0 commit comments

Comments
 (0)