Assert that no exception was thrown

35 views
Skip to first unread message

sabr

unread,
Jun 16, 2014, 12:55:25 PM6/16/14
to igloo-...@googlegroups.com
Is there a way to assert that a line of code ran without problems, i.e. without throwing any exceptions?
I'm using Igloo for a C++ application.

Joakim Karlsson

unread,
Jun 17, 2014, 12:59:00 PM6/17/14
to igloo-...@googlegroups.com
Hi,

You shouldn't have to do anything, really. If you just call the method that you want to test and that method throws an exception, igloo will consider that a failure. If no exception is thrown, then the test is considered a success.

/Joakim


On Mon, Jun 16, 2014 at 6:55 PM, sabr <shimrit....@gmail.com> wrote:
Is there a way to assert that a line of code ran without problems, i.e. without throwing any exceptions?
I'm using Igloo for a C++ application.

--
You received this message because you are subscribed to the Google Groups "Igloo-testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to igloo-testin...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages