From 64dc925c4afad63bc5c8a6017d969abbab1d2ac5 Mon Sep 17 00:00:00 2001 From: Rami Ali Date: Thu, 5 Jan 2017 11:06:12 +1100 Subject: tests/float: Improve formatfloat.c test coverage using Python. --- tests/float/string_format_modulo.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/float/string_format_modulo.py') 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' -- cgit v1.2.3