I'm playing with the example 16-trompeloeil-runtime.cpp, where the default reporter for trompeloeil is used.
I noticed that if the test case fails, an exception is always thrown with trompeloeil::severity::fatal and then I got the following output:
[file/line unavailable]:0: No match for call of method with signature bool(std::string) with.
param _1 == world
Tried mock.method("hello") at 16-trompeloeil-runtime.cpp:37
Expected _1 == hello
: Expect one call to mock.method(std::string):
1 out of 3 selected tests failed.
Why it is necessary to throw exception in this case?
Why is it output No match for calling the method with the signature bool (std::string) with. if the signature of mock-function is ok and the problem is just the wrong value of the argument?
Hi, Martin!
I'm playing with the example 16-trompeloeil-runtime.cpp, where the default reporter for trompeloeil is used. I noticed that if the test case fails, an exception is always thrown with
trompeloeil::severity::fatal
and then I got the following output:No match for calling the method with the signature bool (std::string) with.
if the signature of mock-function is ok and the problem is just the wrong value of the argument?line
argument in use-trompeloeil-with-lest reporter not equal 0?