aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tests/dice
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2021-01-24 13:30:26 +0100
committerRenaud G <renaud@rolisteam.org>2021-01-24 13:30:26 +0100
commit7d55efb32e845c910177c083e095956765fd5c17 (patch)
treef3beaae96546f9cfabb25f3c456216acb89ca6ef /tests/dice
parent228f38d2592dcce72274018a4ae9a745dc0f8005 (diff)
downloadOneRoll-7d55efb32e845c910177c083e095956765fd5c17.tar.gz
OneRoll-7d55efb32e845c910177c083e095956765fd5c17.zip
Remove build warnings.
Diffstat (limited to 'tests/dice')
-rw-r--r--tests/dice/tst_dice.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/dice/tst_dice.cpp b/tests/dice/tst_dice.cpp
index 0ede904..910fb4d 100644
--- a/tests/dice/tst_dice.cpp
+++ b/tests/dice/tst_dice.cpp
@@ -707,8 +707,9 @@ void TestDice::countTest()
QVector<ValidatorList::LogicOperation> vector;
bool first= true;
- for(auto i : condition)
+ for(const auto& i : condition)
{
+ Q_UNUSED(i)
if(!first)
{
first= !first;
@@ -989,6 +990,8 @@ void TestDice::ifTest_data()
QTest::addRow("cmd9") << QVector<int>({25, 8, 14}) << onScalar << 1 << "False";
QTest::addRow("cmd10") << QVector<int>({25, 8, 14}) << onScalar << 47 << "True";
+
+ QTest::addRow("cmd11") << QVector<int>({25, 8, 14}) << onEachValue << 47 << "True";
}
void TestDice::paintTest() {}