diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-12-23 11:33:42 -0500 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-12-23 11:33:42 -0500 |
| commit | 4b5721f05ca039bc1656665811356edc3cf7839f (patch) | |
| tree | 8838b964a2837034d8381020a96d5fecbc34638d /sigcore/test/TestHat.cpp | |
| parent | 47d5c9bee1fd35edb92e9d0dd2069b501480a8d3 (diff) | |
| download | sigen-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.cpp | 18 |
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()); |
