1 // (c) Copyright Juergen Hunold 2012 2 // Use, modification and distribution is subject to the Boost Software 3 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at 4 // http://www.boost.org/LICENSE_1_0.txt) 5 6 #include <QtTest> 7 8 class QtTest: public QObject 9 { 10 /*! 11 Test if the moc gets the #define 12 */ 13 #if defined(TEST_MOCK) 14 Q_OBJECT 15 #endif 16 17 private Q_SLOTS: 18 void toUpper(); 19 }; 20 21 void toUpper()22QtTest::toUpper() 23 { 24 QString str = "Hello"; 25 QCOMPARE(str.toUpper(), QString("HELLO")); 26 } 27 28 QTEST_MAIN(QtTest) 29 #include "qttest.moc" 30 31