So far, just by trying it. If you like it, I can add real tests to this PR.
Unrelated, but I noticed that the syntax in the documentation doesn't match what is actually tested for rerolling (documented as 1d20r#1, implemented as 1d20r==1) and macro calls (documented as #PLANETS, implemented as @PLANETS). Also, gnoll.roll('1d6', builtins = True, mock = 1) segfaults.
Change Type
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Test Coverage (Additional test(s) without any extra code)
[ ] Documentation Improvements
[ ] Code Quality / Maintenance
Checklist
[ ] My code follows the code style of this project.
[x] My change requires a change to the documentation & I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[x] All new and existing tests passed.
[x] I give my permission for my code to be used in this project under this license and any future license terms
Description
How Has This Been Tested
So far, just by trying it. If you like it, I can add real tests to this PR.
Unrelated, but I noticed that the syntax in the documentation doesn't match what is actually tested for rerolling (documented as
1d20r#1
, implemented as1d20r==1
) and macro calls (documented as#PLANETS
, implemented as@PLANETS
). Also,gnoll.roll('1d6', builtins = True, mock = 1)
segfaults.Change Type
Checklist