mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-02 02:56:52 +00:00
Fix too long floating point number parse problem
- Also include @dougthor42's diff to test the fix
see: [his diff](https://github.com/pre-commit/pre-commit-hooks/compare/main...dougthor42:high-precision-numbers)
This commit is contained in:
parent
6b03546fc3
commit
629df55544
3 changed files with 7 additions and 2 deletions
|
|
@ -23,6 +23,8 @@ def test_parse_num_to_int():
|
|||
('unsorted_pretty_formatted_json.json', 1),
|
||||
('non_ascii_pretty_formatted_json.json', 1),
|
||||
('pretty_formatted_json.json', 0),
|
||||
# numbers with high precision should not be modified.
|
||||
('high_precision_numbers.json', 0),
|
||||
),
|
||||
)
|
||||
def test_main(filename, expected_retval):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue