samedi 28 mai 2016

How to assert with Google test that assert() succeeded? [duplicate]

This question already has an answer here:

Here it's discussed how to catch failing assert, e.g. you setup your fixture so that assert() fails and you see nice output. But what I need is the opposite. I want to test that assert() succeeds. But in case it fails I want to have nice output. At that moment it just terminates when it snags no assert().

Aucun commentaire:

Enregistrer un commentaire