tests: Add boolean-as-integer formatting tests for fixed regression.

As suggested by @dpgeorge in #5538.
This commit is contained in:
Yonatan Goldschmidt
2020-01-22 20:53:54 +01:00
committed by Damien George
parent 35e664d779
commit cb4472df42
3 changed files with 12 additions and 0 deletions

View File

@@ -24,6 +24,9 @@ test("{:06e}", float("inf"))
test("{:06e}", float("-inf"))
test("{:06e}", float("nan"))
test('{:f}', False)
test('{:f}', True)
# The following fails right now
#test("{:10.1}", 0.0)