summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-12-24 13:04:42 -0500
committerBen Boeckel <MathStuf@gmail.com>2008-12-24 13:04:42 -0500
commit843b452b073feb296893c431b18ad2732ea7463b (patch)
treeeceaddda1933ddc23b76d13ff5a8f396f58ee5b0
parente5dadb7661ee519ed62aafd0ea3e382c81478504 (diff)
downloadsigen-843b452b073feb296893c431b18ad2732ea7463b.tar.gz
sigen-843b452b073feb296893c431b18ad2732ea7463b.tar.xz
sigen-843b452b073feb296893c431b18ad2732ea7463b.zip
Swap things so that defaults don't make false positives
-rw-r--r--sigmod/test/TestItemType.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/sigmod/test/TestItemType.cpp b/sigmod/test/TestItemType.cpp
index 343a89b8..a33fec97 100644
--- a/sigmod/test/TestItemType.cpp
+++ b/sigmod/test/TestItemType.cpp
@@ -34,6 +34,8 @@ void TestItemType::initTestCase()
m_itemType1 = m_sigmod->newItemType();
m_itemType2 = m_sigmod->newItemType();
m_itemType3 = m_sigmod->newItemType();
+
+ m_itemType1->setCount(Sigmod::ItemType::Total);
}
void TestItemType::cleanupTestCase()
@@ -114,7 +116,7 @@ void TestItemType::loading()
m_itemType1->setComputer(10);
m_itemType1->setPlayer(25);
m_itemType1->setMaxWeight(75);
- m_itemType1->setCount(Sigmod::ItemType::Total);
+ m_itemType1->setCount(Sigmod::ItemType::Distinct);
QVERIFY(file.open(QIODevice::ReadOnly));
QVERIFY(xml.setContent(&file));
@@ -126,7 +128,7 @@ void TestItemType::loading()
QCOMPARE(m_itemType1->maxWeight(), 50);
// FIXME
QEXPECT_FAIL(0, "Loading enumeration data from XML file doesn't work", Continue);
- QCOMPARE(m_itemType1->count(), Sigmod::ItemType::Distinct);
+ QCOMPARE(m_itemType1->count(), Sigmod::ItemType::Total);
}
void TestItemType::setName()