Tests

Contains all the documentation for the files under /tests.

All

Base Dice tests.

tests.test_all.test_always_true()

Generic test to ensure system is setup correctly.

tests.test_all.test_reroll()

Test basic rerolls.

Magic

Magic tests.

tests.test_magic.test_bool()

Test __bool__ works correctly.

tests.test_magic.test_contains()

Test __contains__ is correctly setup.

tests.test_magic.test_copy()

Test copy works correctly.

tests.test_magic.test_equality()

Test equality works correctly.

tests.test_magic.test_from_empty()

Ensure from_empty creates an empty dice.

tests.test_magic.test_from_partial()

Test from_partial works correctly.

Magic Numeric

Test numeric operators.

tests.test_magic_numeric.test_addition()

Test addition works correctly.

tests.test_magic_numeric.test_multiplication()

Test multiplication works correctly.

Documentation

Internal

Test internal documentation.

tests.documentation.test_internal.reroll(dice, values)

Test reroll works correctly.

tests.documentation.test_internal.test_apply_dice()

Test apply dice works correctly.

tests.documentation.test_internal.test_apply_functions()

Test apply_functions works correctly.

tests.documentation.test_internal.test_as_total_chance()

Test as_total_chance works correctly.

tests.documentation.test_internal.test_from_dice()

Test from_dice works correctly.

tests.documentation.test_internal.test_max()

Test max works correctly.

tests.documentation.test_internal.test_partition()

Test partition works correctly.

tests.documentation.test_internal.test_reroll()

Test reroll works correctly.

tests.documentation.test_internal.test_sum()

Test sum works correctly.

Tutorial

Tests in the tutorial.

tests.documentation.test_tutorial.test_basic_dice_operations_ga()

Test basic dice operations.

tests.documentation.test_tutorial.test_basic_dice_operations_gs()

Test basic dice operations.

tests.documentation.test_tutorial.test_rerolling_reroll()

Test reroll.