On 4 February 2011 08:23, nhainer [via fctx]
<
[hidden email]> wrote:
> If a test should fail it would be real helpful to display the "actual" value
> as well as the "expected" value. Is it possible to do this with FCTX?
I think what you would want to use is the fct_xchk (extended check)
macro. This lets you display the failed results.
See
http://fctx.wildbearsoftware.com/static/fctx/doc/current/api_fct.html#fct_xchk.
There is also another example of writing a custom check at:
http://fctx.wildbearsoftware.com/Example/CustomCheck .
Finally there are lot of "built in fct_xchk" implementations available
like fct_chk_str_eq, etc. See,
http://fctx.wildbearsoftware.com/static/fctx/doc/current/api_fct.html#checksLet me know if that doesn't help you. I am currently working on
expanding those checks to handle more types for the next release (with
an eye on more C++ support), so I can add something in the next little
while if you have a need.
--
Ian Blumel
www.wildbearsoftware.com