-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zerosum: add config option "tolerance" (#16)
* style: s/Vsia/Visa/g * style: trim trailing whitespace for two files * test: add two new unit tests in prep for tolerance In preparation of the "tolerance" config option feature, add two new unit tests: - `test_two_matched_below_epsilon`: demonstrate that two transactions that logically shouldn't match can end up matching because they sum up to be below epsilon (aka tolerance) - `test_two_unmatched_above_epsilon`: prepare to demonstrate that two transactions that logically shouldn't match can avoid matching if epsilon (aka tolerance) is set low enough (this test should currently fail because tolerance is too high!) * feat: add epsilon_delta as config parameter * style: S/epsilon_delta/tolerance/g * style: s/TOLERANCE/DEFAULT_TOLERANCE/ * style: add trailing comma to config dict * test: set tolerance to 0.0098 Set tolerance slightly lower so that `test_two_unmatched_above_epsilon` lives up to its name and now passes. * style: s/Visa/Green/
- Loading branch information
Showing
3 changed files
with
65 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters