Exemple #1
0
 def test_two_qualified_dice(self):
     # assume 3-12
     dice = {4:[3, 0],
             10:[1, 2]}
     assert(mod._die_combo_chooser(dice)  == (4, 3, 0))
Exemple #2
0
 def test_no_qualified_dice(self):
     # assume 5-4 (invalid) 
     dice = {4:[None, None],
             6:[None, None]}
     assert(mod._die_combo_chooser(dice)  == (None, None, None))
Exemple #3
0
 def test_one_qualified_die(self):
     dice = {4:[1, 0],
             6:[None, None]}
     assert(mod._die_combo_chooser(dice)  == (4, 1, 0))