How Do You Display An "Actual" Value?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

How Do You Display An "Actual" Value?

Horace Debussy Jones

Hi,

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?

TIA.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: How Do You Display An "Actual" Value?

Ian Blumel
Administrator
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#checks

Let 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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: How Do You Display An "Actual" Value?

Horace Debussy Jones
Your suggestion worked perfectly.

Thanks.
Loading...