diff options
| author | Daniel Teichmann <daniel.teichmann@das-netzwerkteam.de> | 2021-08-10 14:56:44 +0200 |
|---|---|---|
| committer | Daniel Teichmann <daniel.teichmann@das-netzwerkteam.de> | 2021-08-10 14:56:44 +0200 |
| commit | 6ae4c71032e6b15dedd631dfff0c0c4cc4a8522a (patch) | |
| tree | cd2c53b90bb13375df387414e99e6d8e7509e2a9 /tests | |
| parent | afeb0381f568b4c9f51296cd5de325c8c8aac3f2 (diff) | |
| download | RWA.Support.DesktopApp-6ae4c71032e6b15dedd631dfff0c0c4cc4a8522a.tar.gz RWA.Support.DesktopApp-6ae4c71032e6b15dedd631dfff0c0c4cc4a8522a.tar.bz2 RWA.Support.DesktopApp-6ae4c71032e6b15dedd631dfff0c0c4cc4a8522a.zip | |
Complete restructure of current code tree
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/testqstring.cpp | 15 | ||||
| -rw-r--r-- | tests/tests.pro | 4 |
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/testqstring.cpp b/tests/testqstring.cpp new file mode 100644 index 0000000..20ecf78 --- /dev/null +++ b/tests/testqstring.cpp @@ -0,0 +1,15 @@ +#include <QtTest/QtTest> + +class TestQString: public QObject { + Q_OBJECT +private slots: + void toUpper(); +}; + +void TestQString::toUpper() { + QString str = "Hello"; + QCOMPARE(str.toUpper(), QString("HELLO")); +} + +QTEST_MAIN(TestQString) +#include "testqstring.moc" diff --git a/tests/tests.pro b/tests/tests.pro new file mode 100644 index 0000000..0f9e09e --- /dev/null +++ b/tests/tests.pro @@ -0,0 +1,4 @@ +QT += testlib + +SOURCES += testqstring.cpp + |
