Skip to content

Commit

Permalink
documentation tweaks and renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
owestphal committed Aug 27, 2024
1 parent b78dbca commit 4ca2d71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Test/IOTasks.hs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module Test.IOTasks (
not',
(.&&.), (.||.),
true, false,
-- ** Embedded literals
-- ** Embedded values
embeddedLit,
-- ** Simple list functions
sum', product', length', reverse',
Expand Down
6 changes: 3 additions & 3 deletions src/Test/IOTasks/Random/Testing.hs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ data Args
-- | size of randomly generated input candidates (the solver might find bigger solutions)
, valueSize :: Integer
-- | maximum number of generated tests
, maxSuccess :: Int
, numberOfTests :: Int
-- | maximum number of negative inputs per path (for 'InputMode' 'UntilValid')
, maxNegative :: Int
-- | print extra information
Expand All @@ -60,7 +60,7 @@ stdArgs :: Args
stdArgs = Args
{ maxInputLength = Nothing
, valueSize = 100
, maxSuccess = 100
, numberOfTests = 100
, maxNegative = 5
, terminalOutput = True
, feedbackStyle = defaultFeedback
Expand All @@ -77,7 +77,7 @@ taskCheckOutcome = taskCheckWithOutcome stdArgs
taskCheckWithOutcome :: Args -> IOrep () -> Specification -> IO Outcome
taskCheckWithOutcome Args{..} prog spec = do
output <- newOutput stdout
(outcome, _to) <- foldM (\(o',to) n -> first (o' <>) <$> test output n to) (mempty,0) [0..maxSuccess-1]
(outcome, _to) <- foldM (\(o',to) n -> first (o' <>) <$> test output n to) (mempty,0) [0..numberOfTests-1]
printP output $ printOutcomeWith feedbackStyle outcome
pure outcome

Expand Down

0 comments on commit 4ca2d71

Please sign in to comment.