summaryrefslogtreecommitdiffstats
path: root/sigcore/test/TestHat.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-12-23 11:33:42 -0500
committerBen Boeckel <MathStuf@gmail.com>2008-12-23 11:33:42 -0500
commit4b5721f05ca039bc1656665811356edc3cf7839f (patch)
tree8838b964a2837034d8381020a96d5fecbc34638d /sigcore/test/TestHat.cpp
parent47d5c9bee1fd35edb92e9d0dd2069b501480a8d3 (diff)
downloadsigen-4b5721f05ca039bc1656665811356edc3cf7839f.tar.gz
sigen-4b5721f05ca039bc1656665811356edc3cf7839f.tar.xz
sigen-4b5721f05ca039bc1656665811356edc3cf7839f.zip
Cleaned up test files to only be source files
Diffstat (limited to 'sigcore/test/TestHat.cpp')
-rw-r--r--sigcore/test/TestHat.cpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/sigcore/test/TestHat.cpp b/sigcore/test/TestHat.cpp
index 215744a7..78d39f25 100644
--- a/sigcore/test/TestHat.cpp
+++ b/sigcore/test/TestHat.cpp
@@ -15,12 +15,26 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-// Header include
-#include "TestHat.h"
+// Sigcore includes
+#include "../Hat.h"
// Qt includes
#include <QtTest/QTest>
+class TestHat : public QObject
+{
+ Q_OBJECT
+
+ private slots:
+ void initTestCase();
+ void pick();
+ void take();
+ void takeAndClear();
+ void setCount();
+ void add();
+ void chance();
+};
+
void TestHat::initTestCase()
{
qsrand(QDateTime::currentDateTime().toTime_t());