From a4319441d330fd334d7dfd8a0664b2cd4823fad1 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Wed, 29 Jan 2020 02:12:56 +0100 Subject: Fix 1d20|3i:[>1]{"Success"}{"Failure"} command. Prevent division by zero due to priority. --- tests/dice/tst_dice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/dice') 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() -- cgit v1.2.3-70-g09d2