diff options
| author | Rami Ali | 2017-01-05 11:06:12 +1100 |
|---|---|---|
| committer | Damien George | 2017-01-05 12:31:05 +1100 |
| commit | 64dc925c4afad63bc5c8a6017d969abbab1d2ac5 (patch) | |
| tree | 599d4861c4878ea150bce964b2a7c94f53d4e919 /tests/float/string_format_modulo.py | |
| parent | ec72db8a398f82fb694dc01c7081232286e72c3f (diff) | |
tests/float: Improve formatfloat.c test coverage using Python.
Diffstat (limited to 'tests/float/string_format_modulo.py')
| -rw-r--r-- | tests/float/string_format_modulo.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/float/string_format_modulo.py b/tests/float/string_format_modulo.py index 681e9eb80..03c8dd00a 100644 --- a/tests/float/string_format_modulo.py +++ b/tests/float/string_format_modulo.py @@ -42,3 +42,5 @@ print(('%.40g' % 1e-1)[:2]) print(('%.40g' % 1e-2)[:2]) print(('%.40g' % 1e-3)[:2]) print(('%.40g' % 1e-4)[:2]) + +print("%.0g" % 1) # 0 precision 'g' |
