Add doctests for liberty_float edge case

Issue #280
This commit is contained in:
Rob Taylor 2020-12-21 23:33:09 +00:00
parent d99d853ef9
commit 9d39c63f51
1 changed files with 9 additions and 0 deletions

View File

@ -769,6 +769,15 @@ def liberty_float(f):
>>> liberty_float(1)
'1.0000000000'
>>> liberty_float(1e9)
'1000000000.0'
>>> liberty_float(1e10)
'1.000000e+10'
>>> liberty_float(1e15)
'1.000000e+15'
>>> liberty_float(True)
Traceback (most recent call last):
...