<div dir="auto"><div data-smartmail="gmail_signature" dir="auto">On Tue, 29 May 2018, 20:26 Kristian Evers, <<a href="mailto:kreve@sdfe.dk" target="_blank" rel="noreferrer">kreve@sdfe.dk</a>> wrote:<br></div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;line-break:after-white-space">
Mateusz,
<div><br>
</div>
<div>That was a good assumption at the time :-) Things are a little bit different now.</div>
<div>It would seem that Catch2 is also good for C code, yes?</div></div></blockquote></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">Yes, a C++ testing framework can test C project should generally be fine. </div><div dir="auto">There may be need to for manual resetting of globals, static memory to ensure one test case does not affect another. The interrupts and signal handling, if used by target code, may need to some consideration as well.</div><div dir="auto"><br></div><div dir="auto">One general and stylistic comment about Catch, since it supports two modes of tests classic test cases and BDD style, it may be a good idea to stick to one of those, not mixing them.</div><div dir="auto">(I personally find <span style="font-family:sans-serif">the classical test cases</span> easier to write and follow.)</div><div dir="auto"><br></div><div dir="auto">Mateusz </div><div dir="auto"><br></div></div>