aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/tests
diff options
context:
space:
mode:
authorRenaud Guezennec <renaud@rolisteam.org>2025-02-09 06:05:05 +0100
committerRenaud Guezennec <renaud@rolisteam.org>2025-02-09 06:05:05 +0100
commit6fcb5ca46927f7baab744e117af9eb1ce5b74838 (patch)
tree803b14b1315dfed095705d0c417b19c970541535 /src/tests
parentb8486f92408afa1a0c71d3f62d93f49ac8bebc60 (diff)
downloadOneRoll-6fcb5ca46927f7baab744e117af9eb1ce5b74838.tar.gz
OneRoll-6fcb5ca46927f7baab744e117af9eb1ce5b74838.zip
[Dice] add functions: floor, ceil, round
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/dice/tst_dice.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/dice/tst_dice.cpp b/src/tests/dice/tst_dice.cpp
index d6b9de3..0332504 100644
--- a/src/tests/dice/tst_dice.cpp
+++ b/src/tests/dice/tst_dice.cpp
@@ -399,6 +399,8 @@ void TestDice::commandsTest_data()
QTest::addRow("cmd91") << "1d20|3i:[>1]{\"Success\"}{\"Failure\"}";
QTest::addRow("cmd92") << "4d10k3;4d10k3;4d10k3;[$1,$2,$3]s;\"Score @4\"";
QTest::addRow("cmd93") << "4d10e(10)10";
+ QTest::addRow("cmd94") << "15/7;floor($1);ceil($1);round($1)";
+ QTest::addRow("cmd94") << "15/7;floor(15/7);ceil(15/7);round(15/7)";
}
void TestDice::rangedCommandsTest()