From dde935e48d44ca1b2b8ce993ae5bc187a8ca30fd Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 24 Feb 2009 15:53:15 -0500 Subject: Fixed sigmod tests to also use namespace Sigmod --- sigmod/test/TestStore.cpp | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'sigmod/test/TestStore.cpp') diff --git a/sigmod/test/TestStore.cpp b/sigmod/test/TestStore.cpp index 8dd568e8..4957e940 100644 --- a/sigmod/test/TestStore.cpp +++ b/sigmod/test/TestStore.cpp @@ -19,20 +19,22 @@ #include "TestStore.h" // Sigmod includes -#include "../Sigmod.h" +#include "../Game.h" #include "../Store.h" // Qt includes #include #include +using namespace Sigmod; + void TestStore::initTestCase() { TestSigmodObject::initTestCase(); - m_store1 = m_sigmod->newStore(); - m_store2 = m_sigmod->newStore(); - m_store3 = m_sigmod->newStore(); + m_store1 = m_game->newStore(); + m_store2 = m_game->newStore(); + m_store3 = m_game->newStore(); } void TestStore::cleanupTestCase() @@ -71,7 +73,7 @@ void TestStore::validation() QCOMPARE(m_warnings.size(), 0); QCOMPARE(m_errors.size(), 3); - m_sigmod->newItem(); + m_game->newItem(); m_store1->setItem(0, true); m_store1->validate(); @@ -82,7 +84,7 @@ void TestStore::validation() void TestStore::saving() { - QDomDocument xml = Sigmod::Object::xml(m_store1); + QDomDocument xml = Object::xml(m_store1); QFile file("store.xml"); QVERIFY(file.open(QIODevice::WriteOnly)); @@ -95,7 +97,7 @@ void TestStore::loading() QDomDocument xml; QFile file("store.xml"); - m_sigmod->newItem(); + m_game->newItem(); m_store1->setName("Bar"); m_store1->setItem(0, false); @@ -125,7 +127,7 @@ void TestStore::setName() void TestStore::items() { - m_sigmod->newItem(); + m_game->newItem(); m_store2->setItem(0, true); m_store2->setItem(0, true); -- cgit