Commit e448217e authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Add "composes" to the driver docs

parent b56798ca
......@@ -224,10 +224,13 @@ these steps:
saying compose(f,g). For example, to expect an exit
code of 3 and omit way 'opt', we could use
compose(omit_ways(['opt']), exit_code(3))
compose(omit_ways(['opt']), exit_code(3))
as the <opt-fn> argument. Calls to compose() can of
course be nested.
as the <opt-fn> argument. Calls to compose() can of
course be nested, but it is simpler to use the composes
function which takes a list of functions to be composed, e.g.:
composes([omit_ways(['opt']), exit_code(3)])
<test-fn> is a function which describes how the test should be
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment