1 |
|
|
|
2 |
|
|
/*************************************** |
3 |
|
|
Auteur : Pierre Aubert |
4 |
|
|
Mail : pierre.aubert@lapp.in2p3.fr |
5 |
|
|
Licence : CeCILL-C |
6 |
|
|
****************************************/ |
7 |
|
|
|
8 |
|
|
#include "phoenix_assert.h" |
9 |
|
|
|
10 |
|
|
///Check the phoenix_assert macro |
11 |
|
|
/** @param callAssert : true is the assert is OK, false if not |
12 |
|
|
*/ |
13 |
|
1 |
void testCallAssert(bool callAssert){ |
14 |
✓✓✓✓
|
1 |
phoenix_assert(callAssert); |
15 |
|
1 |
} |
16 |
|
|
|
17 |
|
1 |
int main(int argc, char** argv){ |
18 |
|
1 |
bool callAssert(argc >= 2); |
19 |
|
1 |
testCallAssert(callAssert); |
20 |
|
1 |
return 0; |
21 |
|
|
} |
22 |
|
|
|
23 |
|
|
|