On 9/11/2014 6:33 AM, Jamie Bullock wrote:
> Are there any known (or suspected) issues, or is just that it hasn't
> been tested widely with C code?
Hi Jamie,
Just speculating (I only use CATCH with C++) but since CATCH is a
header-only C++ library, that means that your test cases will need to be
C++ files. There's no problem calling your ANSI C code from C++ of
course, so it should work.
I guess it depends on whether you're happy for your test cases to be
written in C++. That might be a problem if you're writing embedded code
on a platform without a C++ compiler, or if the interface to your C code
uses some incompatible C-ism (if such a thing exists).
Another thing is your test executables will need to be linked with the
C++ runtime. I can imagine this might be a subtle problem for some
low-level edge-case scenarios, but in general it shouldn't be a problem.
Cheers,
Ross.