diff options
author | Cornelius Roemer <cornelius.roemer@gmail.com> | 2021-12-29 21:47:41 +0000 |
---|---|---|
committer | Cornelius Roemer <cornelius.roemer@gmail.com> | 2021-12-29 21:47:41 +0000 |
commit | 2cc1f92e9087c955599e87612fd1cd85389c2bdf (patch) | |
tree | b877d37716d337919a9ea38aa60ad0b5095b69bd /numpy | |
parent | b6967143e0aff04f2f4b2ae89cea4c4c762bbaf9 (diff) | |
download | numpy-2cc1f92e9087c955599e87612fd1cd85389c2bdf.tar.gz |
BUG: Add test for scalarprint bugfix
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/tests/test_scalarprint.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/core/tests/test_scalarprint.py b/numpy/core/tests/test_scalarprint.py index ee21d4aa5..b1d158ddc 100644 --- a/numpy/core/tests/test_scalarprint.py +++ b/numpy/core/tests/test_scalarprint.py @@ -306,6 +306,8 @@ class TestRealScalars: assert_equal(fpos(tp('1.2'), unique=False, precision=4, trim='-'), "1.2" if tp != np.float16 else "1.2002") assert_equal(fpos(tp('1.'), trim='-'), "1") + assert_equal(fpos(tp('1.001'), unique=False, precision=1, trim='-'), + "1") @pytest.mark.skipif(not platform.machine().startswith("ppc64"), reason="only applies to ppc float128 values") |