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 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/testqstring.cpp (limited to 'tests/testqstring.cpp') 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" -- cgit v1.2.3