aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2020-01-29 02:12:56 +0100
committerRenaud G <renaud@rolisteam.org>2020-01-29 02:12:56 +0100
commita4319441d330fd334d7dfd8a0664b2cd4823fad1 (patch)
treeb5bb8992dec5e5ef0788589f3cada0f76e80d2ab /tests
parent097bfba45b5174a4b904e5c8474557a68365e182 (diff)
downloadOneRoll-a4319441d330fd334d7dfd8a0664b2cd4823fad1.tar.gz
OneRoll-a4319441d330fd334d7dfd8a0664b2cd4823fad1.zip
Fix 1d20|3i:[>1]{"Success"}{"Failure"} command.
Prevent division by zero due to priority.
Diffstat (limited to 'tests')
-rw-r--r--tests/dice/tst_dice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/dice/tst_dice.cpp b/tests/dice/tst_dice.cpp
index 7df2160..ba47dcf 100644
--- a/tests/dice/tst_dice.cpp
+++ b/tests/dice/tst_dice.cpp
@@ -430,7 +430,7 @@ void TestDice::mathPriority()
QCOMPARE(resultList.size(), 1);
auto value= resultList.first();
- QVERIFY(qFuzzyCompare(value, expected) == 1);
+ QCOMPARE(value, expected);
}
void TestDice::mathPriority_data()