tools.test-docs: fix the order of parameters for must-fail-with

char-rename
Alexander Iljin 2017-04-07 18:30:30 +03:00
parent a6caeb6e80
commit 6819db7e8f
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ HELP: must-fail
{ $notes "This word is used to test boundary conditions and fail-fast behavior." } ;
HELP: must-fail-with
{ $syntax "[ pred ] [ quot ] must-fail-with" }
{ $syntax "[ quot ] [ pred ] must-fail-with" }
{ $values { "quot" "a quotation run with an empty stack" } { "pred" { $quotation ( error -- ? ) } } }
{ $description "Runs a quotation with an empty stack, expecting it to throw an error which must satisfy " { $snippet "pred" } ". If the quotation does not throw an error, or if the error does not match the predicate, the unit test fails." }
{ $notes "This word is used to test error handling code, ensuring that errors thrown by code contain the relevant debugging information." } ;