LibCarna
Version 3.4.0
Loading...
Searching...
No Matches
test
Tools
TestSuite.hpp
1
/*
2
* Copyright (C) 2010 - 2016 Leonid Kostrykin
3
*
4
* Chair of Medical Engineering (mediTEC)
5
* RWTH Aachen University
6
* Pauwelsstr. 20
7
* 52074 Aachen
8
* Germany
9
*
10
*
11
* Copyright (C) 2021 - 2025 Leonid Kostrykin
12
*
13
*/
14
15
#pragma once
16
17
#include <QDebug>
18
#include <QtGlobal>
19
#include <iostream>
20
21
namespace
LibCarna
22
{
23
80
namespace
testing
81
{
82
83
84
85
// ----------------------------------------------------------------------------------
86
// EXPECT_ASSERTION_FAILURE
87
// ----------------------------------------------------------------------------------
88
89
#define EXPECT_ASSERTION_FAILURE( expression ) \
90
try \
91
{ \
92
expression; \
93
QFAIL( "Expected assertion failure did not raise upon expression." ); \
94
} \
95
catch( const LibCarna::base::AssertionFailure& ) \
96
{ \
97
}
98
99
100
101
}
// namespace LibCarna :: testing
102
103
}
// namespace LibCarna
104
105
using namespace
LibCarna::testing
;
LibCarna::testing
This namespace contains the test suite components.
Definition
BufferedIntensityVolumeTest.hpp:24
Written by Leonid Kostrykin © 2021–2025. Based on
Carna
(© 2010-2016).
Documentation generated by
Doxygen