Using a comma inside a test case will break the describe macro
jorsanpe opened this issue · 0 comments
jorsanpe commented
I've tried the following and it seems to break the macro expansion.
it("finds the plugin by a plugin is stored with the same name", [&]() {
int var1, var2; // The comma is detected as the third argument of the 'it' macro
...
});
I think this could be solved by changing the macro definition with ...
and then using __VA_ARGS__
:
#define it(x, ...) cest::itFunction(__FILE__, __LINE__, x, __VA_ARGS__)