aboutsummaryrefslogtreecommitdiff
path: root/tests/testqstring.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testqstring.cpp')
-rw-r--r--tests/testqstring.cpp15
1 files changed, 15 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"