mirror of
https://github.com/codedownio/sandwich.git
synced 2024-09-21 00:38:27 +03:00
Remove a broken link
This commit is contained in:
parent
818099ea2a
commit
3913ed2f8f
@ -43,7 +43,7 @@ main = runSandwichWithCommandLineArgs defaultOptions basic
|
||||
|
||||
The tests above assert things using expectation functions like `shouldBe`. There are a variety of these in [Test.Sandwich.Expectations](http://hackage.haskell.org/package/sandwich/docs/Test-Sandwich-Expectations.html) such as `shouldNotBe`, `shouldContain`, etc., and they are similar to other test frameworks.
|
||||
|
||||
These functions simply throw an exception of type [FailureReason](http://hackage.haskell.org/package/sandwich/docs/Test-Sandwich-Misc.html#t:FailureReason) which the Sandwich machinery catches and displays. Don't worry, you can throw other exceptions too. You can even write instances for your [custom exception types](extensions/advanced#formatting-custom-exceptions) so that they display nicely in Sandwich [formatters](formatters/tui).
|
||||
These functions simply throw an exception of type [FailureReason](http://hackage.haskell.org/package/sandwich/docs/Test-Sandwich-Misc.html#t:FailureReason) which the Sandwich machinery catches and displays. Don't worry, you can throw other exceptions too. You can even write instances for your [custom exception types](#) so that they display nicely in Sandwich [formatters](formatters/tui).
|
||||
|
||||
To fail a test with a string message, just call [expectationFailure](http://hackage.haskell.org/package/sandwich/docs/Test-Sandwich-Expectations.html#v:expectationFailure). You can also mark a test as "pending" by calling the [pending](http://hackage.haskell.org/package/sandwich/docs/Test-Sandwich-Expectations.html#v:pending) function anywhere in the test, or by changing `it` to `xit`.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user