Carna Version 3.3.3
Loading...
Searching...
No Matches
TestSuite.h
1/*
2 * Copyright (C) 2010 - 2015 Leonid Kostrykin
3 *
4 * Chair of Medical Engineering (mediTEC)
5 * RWTH Aachen University
6 * Pauwelsstr. 20
7 * 52074 Aachen
8 * Germany
9 *
10 */
11
12#pragma once
13
14#include <QDebug>
15#include <QtGlobal>
16#include <iostream>
17
18namespace Carna
19{
20
77namespace testing
78{
79
80
81
82// ----------------------------------------------------------------------------------
83// EXPECT_ASSERTION_FAILURE
84// ----------------------------------------------------------------------------------
85
86#define EXPECT_ASSERTION_FAILURE( expression ) \
87 try \
88 { \
89 expression; \
90 QFAIL( "Expected assertion failure did not raise upon expression." ); \
91 } \
92 catch( const Carna::base::AssertionFailure& ) \
93 { \
94 }
95
96
97
98} // namespace Carna :: testing
99
100} // namespace Carna
101
102using namespace Carna::testing;
This namespace contains the test suite components.