Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve tst coverage of univariate base
- Loading branch information
Showing
3 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from arch.univariate.base import format_float_fixed | ||
|
||
|
||
def test_format_float_fixed(): | ||
out = format_float_fixed(0.0) | ||
assert out == '0.0000' | ||
out = format_float_fixed(1.23e-9) | ||
assert out == '1.2300e-09' | ||
out = format_float_fixed(123456789.0) | ||
assert out == '1.2346e+08' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters