-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added test cases for Number validations 1) test cases for while scale is None, precision is None, Both are None 2) Beaking down of Invalid conditions removed extra space 1) Used Decimal and string conversions 2) __get_precision_scale as private Modification in comment Removed InvalidOperation from import Change is class comment Made some changes in test cases class and __call__ method description Fixed class description Fixed class description 1) Moved Decimal import up 2) Added InvalidOperation exception instead of generic 3) Made __get_precision_scale to internal as _get_precision_scale 4) Added assert for doctests 5) Added case with only invalid precision and no scale Added assert for doctests 1) Added Yeild flag(decimal/string) 2) Fixed tests naming convention Fixed exception
- Loading branch information
1 parent
6802ce0
commit 5b1624c
Showing
2 changed files
with
160 additions
and
2 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