From 6ae4c71032e6b15dedd631dfff0c0c4cc4a8522a Mon Sep 17 00:00:00 2001 From: Daniel Teichmann Date: Tue, 10 Aug 2021 14:56:44 +0200 Subject: Complete restructure of current code tree --- tests/testqstring.cpp | 15 +++++++++++++++ tests/tests.pro | 4 ++++ 2 files changed, 19 insertions(+) create mode 100644 tests/testqstring.cpp create mode 100644 tests/tests.pro (limited to 'tests') 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 + +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 + -- cgit v1.2.3