summaryrefslogtreecommitdiffstats
path: root/sigmod/test/TestEggGroup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigmod/test/TestEggGroup.cpp')
-rw-r--r--sigmod/test/TestEggGroup.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/sigmod/test/TestEggGroup.cpp b/sigmod/test/TestEggGroup.cpp
index b84226e3..5883312c 100644
--- a/sigmod/test/TestEggGroup.cpp
+++ b/sigmod/test/TestEggGroup.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright 2008 Ben Boeckel <MathStuf@gmail.com>
+ * Copyright 2008-2009 Ben Boeckel <MathStuf@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -20,19 +20,21 @@
// Sigmod includes
#include "../EggGroup.h"
-#include "../Sigmod.h"
+#include "../Game.h"
// Qt includes
#include <QtCore/QFile>
#include <QtTest/QTest>
+using namespace Sigmod;
+
void TestEggGroup::initTestCase()
{
TestSigmodObject::initTestCase();
- m_eggGroup1 = m_sigmod->newEggGroup();
- m_eggGroup2 = m_sigmod->newEggGroup();
- m_eggGroup3 = m_sigmod->newEggGroup();
+ m_eggGroup1 = m_game->newEggGroup();
+ m_eggGroup2 = m_game->newEggGroup();
+ m_eggGroup3 = m_game->newEggGroup();
}
void TestEggGroup::cleanupTestCase()
@@ -74,7 +76,7 @@ void TestEggGroup::validation()
void TestEggGroup::saving()
{
- QDomDocument xml = Sigmod::Object::xml(m_eggGroup1);
+ QDomDocument xml = Object::xml(m_eggGroup1);
QFile file("eggGroup.xml");
QVERIFY(file.open(QIODevice::WriteOnly));