úÎUøQQD      !"#$%&'()*+,-./0123456789:;<=>?@ABC None!evaluated before each test group (evaluated after each successful example $evaluated after each failed example %evaluated after each pending example evaluated after a test run evaluated after failuresFormatter DA lifted version of E KThis is meant for internal use only, and not part of the public API. This J is also the reason why we do not make FormatM an instance MonadIO, so we : have narrow control over the visibilty of this function. F-Increase the counter for successful examples G*Increase the counter for pending examples H)Increase the counter for failed examples :Get the number of successful examples encountered so far. 7Get the number of pending examples encountered so far. 6Get the number of failed examples encountered so far. 5Get the total number of examples encountered so far. I4Append to the list of accumulated failure messages. .Get the list of accumulated failure messages. "Append some output to the report.  The same as  , but adds a newline character. KSet output color to red, run given action, and finally restore the default  color. ESet output to color green, run given action, and finally restore the  default color. FSet output color to yellow, run given action, and finally restore the  default color. ;Get the used CPU time since the test run has been started. >Get the passed real time since the test run has been started.  DJFGH I DJFGH I DJFGH I Safe-InferedA type class for examples. To use an HUnit   or an   as an example  you need to import Test.Hspec.HUnit. To use a QuickCheck    as an example you need to  import Test.Hspec.QuickCheck. #Internal representation of a spec. "The result of running an example. A list of specs. The describe7 function combines a list of specs into a larger spec. DCreate a set of specifications for a specific type being described. 2 Once you know what you want specs for, use this.  describe "abs" [ : it "returns a positive number given a negative number"  (abs (-1) == 1)  ] !;Create a more readable display of a quantity of something.  Examples: quantify 0 "example" "0 examples"quantify 1 "example" "1 example"quantify 2 "example" "2 examples"KLM !NOKLM ! LKM !NO  Safe-Infered"A pending example. #A pending example. +If you want to report on a behavior but don'!t have an example yet, use this.   describe "fancyFormatter" [ 7 it "can format text in a way that everyone likes" $  pending  ] *You can give an optional reason for why it' s pending.  describe "fancyFormatter" [ 7 it "can format text in a way that everyone likes" $ < pending "waiting for clarification from the designers"  ] "P#QR"P#"P#QR Safe-Infered$%&' $%&'$%&' $%&' Safe-Infered(Summary of a test run. ,=Create a document of the given specs and write it to stdout. Exit the program with S if all examples passed, with  T otherwise. .=Create a document of the given specs and write it to stdout. Return U if all examples passed, V otherwise. /GCreate a document of the given specs and write it to the given handle. Q writeReport filename specs = withFile filename WriteMode (\h -> hHspec h specs) 0GCreate a document of the given specs and write it to the given handle.  THIS IS LIKELY TO CHANGE ()*+,-./01W ()*+,-./01 ,./01()*+-()*+,-./01W Safe-Infered2345 !"#()*+,-./2345" #,./()*+!4-2532345None 8<Create a document of the given spec and write it to stdout. Exit the program with  exitSuccess if all examples passed, with   exitFailure otherwise. 9<Create a document of the given spec and write it to stdout. Return U if all examples passed, V otherwise. :GCreate a document of the given specs and write it to the given handle. Q writeReport filename specs = withFile filename WriteMode (\h -> hHspec h specs) ;0Convert a monadic spec into a non-monadic spec. <0Convert a non-monadic spec into a monadic spec. =The describe7 function combines a list of specs into a larger spec. > An alias for =. ?JCreate a set of specifications for a specific type being described. Once - you know what you want specs for, use this.  describe "abs" $ do < it "returns a positive number given a negative number" $  abs (-1) == 1 @A pending example. +If you want to report on a behavior but don'!t have an example yet, use this.   describe "fancyFormatter" $ do 7 it "can format text in a way that everyone likes" $  pending *You can give an optional reason for why it' s pending.  describe "fancyFormatter" $ do 7 it "can format text in a way that everyone likes" $ < pending "waiting for clarification from the designers" 6789:;<=>?@AB"()*+6789:;<=>?@AB7"=>?@89:()*+;<6AB 6789:;<=>?@AB Safe-InferedXYXY Safe-InferedC*Monadic DSL shortcut, use this instead of ?. CZCCCZ Safe-Infered "#()*+,-./4" #,./()*+4-[ !"#$%&'()*+,-./012 - 34567889:;<=>?@ABCD/*;=>EF0G13C<HIJKILMNOPQRDST - U VWXYWXZ[\][\^_`abc hspec-1.2.0Test.Hspec.QuickCheckTest.Hspec.FormattersTest.Hspec.CoreTest.Hspec.RunnerTest.Hspec.MonadicTest.Hspec.Formatters.InternalTest.Hspec.Internal Test.HUnitTest AssertionTest.QuickCheckPropertyTest.Hspec.PendingTest.Hspec.HUnit Test.HspecQuickCheck-2.5Test.QuickCheck.Propertyproperty Formatter formatterNameexampleGroupStartedexampleSucceeded exampleFailedexamplePendingfailedFormatterfooterFormatterFormatMgetSuccessCountgetPendingCount getFailCount getTotalCountgetFailMessageswrite writeLine withFailColorwithSuccessColorwithPendingColor getCPUTime getRealTimeExampleevaluateExampleSpecResultFailPendingSuccessSpecsdescribeitquantifypendingsilentspecdocprogressfailed_examplesSummarysummaryExamplessummaryFailureshspechspecXhspecBhHspechHspecWithFormat toExitCode AnyExampleUnevaluatedSpec descriptionssafeEvaluateExamplerunSpecM fromSpecListcontextpropliftIOtransformers-0.3.0.0Control.Monad.IO.ClassincreaseSuccessCountincreasePendingCountincreaseFailCountaddFailMessage runFormatM SpecExample SpecGroup$fExampleResult $fExampleBool $fExample(->)$fExamplePendingbase System.Exit exitSuccess exitFailureghc-prim GHC.TypesTrueFalse$fMonoidSummary $fExampleTest $fExampleIO $fExampleGen