diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2009-03-01 00:03:54 -0500 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2009-03-01 00:03:54 -0500 |
commit | 2ea1cebdd005e9d39b71ef493ecffc47d4a8f6c8 (patch) | |
tree | 22f9171841d54c1b58fbba5c41bbb23d8292653d /sigmod | |
parent | 430913b032259cc54439f2f84a28e63935b3ea16 (diff) | |
download | sigen-2ea1cebdd005e9d39b71ef493ecffc47d4a8f6c8.tar.gz sigen-2ea1cebdd005e9d39b71ef493ecffc47d4a8f6c8.tar.xz sigen-2ea1cebdd005e9d39b71ef493ecffc47d4a8f6c8.zip |
Fix TestGame for the name change
Diffstat (limited to 'sigmod')
-rw-r--r-- | sigmod/test/TestGame.cpp | 28 | ||||
-rw-r--r-- | sigmod/test/TestGame.h | 14 |
2 files changed, 21 insertions, 21 deletions
diff --git a/sigmod/test/TestGame.cpp b/sigmod/test/TestGame.cpp index 86a3c676..221a63d0 100644 --- a/sigmod/test/TestGame.cpp +++ b/sigmod/test/TestGame.cpp @@ -16,7 +16,7 @@ */ // Header include -#include "TestSigmod.h" +#include "TestGame.h" // Sigmod includes #include "../Game.h" @@ -27,21 +27,21 @@ using namespace Sigmod; -void TestinitTestCase() +void TestGame::initTestCase() { TestSigmodObject::initTestCase(); - m_game1 = m_game->newSigmod(); - m_game2 = m_game->newSigmod(); - m_game3 = m_game->newSigmod(); + m_game1 = new Game; + m_game2 = new Game; + m_game3 = new Game; } -void TestcleanupTestCase() +void TestGame::cleanupTestCase() { TestSigmodObject::cleanupTestCase(); } -void Testinit() +void TestGame::init() { TestSigmodObject::init(); @@ -50,7 +50,7 @@ void Testinit() makeConnections(m_game3); } -void Testcleanup() +void TestGame::cleanup() { closeConnections(m_game1); closeConnections(m_game2); @@ -59,7 +59,7 @@ void Testcleanup() TestSigmodObject::cleanup(); } -void Testvalidation() +void TestGame::validation() { m_game1->validate(); @@ -73,7 +73,7 @@ void Testvalidation() QCOMPARE(m_errors.size(), ); } -void Testsaving() +void TestGame::saving() { QDomDocument xml = Object::xml(m_game1); QFile file("sigmod.xml"); @@ -83,7 +83,7 @@ void Testsaving() file.close(); } -void Testloading() +void TestGame::loading() { QDomDocument xml; QFile file("sigmod.xml"); @@ -97,7 +97,7 @@ void Testloading() QCOMPARE(m_game1->(), ); } -void Testset() +void TestGame::set() { m_game2->set(); m_game2->set(); @@ -110,11 +110,11 @@ void Testset() QCOMPARE(m_errors.size(), 0); } -void Testassignment() +void TestGame::assignment() { *m_game3 = *m_game2; QCOMPARE(m_game3->(), ); } -QTEST_APPLESS_MAIN(TestSigmod) +QTEST_APPLESS_MAIN(TestGame) diff --git a/sigmod/test/TestGame.h b/sigmod/test/TestGame.h index aa8373c7..870d1c66 100644 --- a/sigmod/test/TestGame.h +++ b/sigmod/test/TestGame.h @@ -15,8 +15,8 @@ * with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef SIGMOD_TESTSIGMOD -#define SIGMOD_TESTSIGMOD +#ifndef SIGMOD_TESTGAME +#define SIGMOD_TESTGAME // Test includes #include "TestSigmodObject.h" @@ -24,10 +24,10 @@ // Forward declarations namespace Sigmod { -class Sigmod; +class Game; } -class TestSigmod : public TestSigmodObject +class TestGame : public TestSigmodObject { Q_OBJECT @@ -44,9 +44,9 @@ class TestSigmod : public TestSigmodObject void assignment(); private: - Sigmod::Sigmod* m_sigmod1; - Sigmod::Sigmod* m_sigmod2; - Sigmod::Sigmod* m_sigmod3; + Sigmod::Game* m_game1; + Sigmod::Game* m_game2; + Sigmod::Game* m_game3; }; #endif |