aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tests/dice/tst_dice.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2021-05-12 18:48:03 +0200
committerRenaud G <renaud@rolisteam.org>2021-05-12 18:48:03 +0200
commitae8b7dc596f7498dbf8153c735d096ae194acf51 (patch)
tree4c9b35d074f852c0cf13883fc711ade26cfe5026 /tests/dice/tst_dice.cpp
parent4fd5a0988bef5c6c5d4ca96967d7d3a176f4c410 (diff)
downloadOneRoll-ae8b7dc596f7498dbf8153c735d096ae194acf51.tar.gz
OneRoll-ae8b7dc596f7498dbf8153c735d096ae194acf51.zip
Make sure k operator can read value from variable.
Diffstat (limited to 'tests/dice/tst_dice.cpp')
-rw-r--r--tests/dice/tst_dice.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/dice/tst_dice.cpp b/tests/dice/tst_dice.cpp
index 97feb95..999f85b 100644
--- a/tests/dice/tst_dice.cpp
+++ b/tests/dice/tst_dice.cpp
@@ -614,7 +614,9 @@ void TestDice::keepTest()
TestNode node;
KeepDiceExecNode keepN;
- keepN.setDiceKeepNumber(keep);
+ NumberNode* numberNode = new NumberNode();
+ numberNode->setNumber(keep);
+ keepN.setDiceKeepNumber(numberNode);
DiceResult result;