blob: 1fb7fbc2d81f56c9704861606f58c9a1228cdc13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
// Make sure we get a real Q_ASSERT even in release builds
#ifdef QT_NO_DEBUG
# undef QT_NO_DEBUG
#endif
#include <QtCore/QCoreApplication>
#include <QTest>
class tst_Assert: public QObject
{
Q_OBJECT
private slots:
void testNumber1() const;
void testNumber2() const;
void testNumber3() const;
};
void tst_Assert::testNumber1() const
{
}
void tst_Assert::testNumber2() const
{
Q_ASSERT(false);
}
void tst_Assert::testNumber3() const
{
}
QTEST_MAIN(tst_Assert)
#include "tst_assert.moc"
|