mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02:00
Merge branch 'develop' into documentation
This commit is contained in:
commit
1802a4ee1c
2 changed files with 13 additions and 1 deletions
|
@ -1274,3 +1274,11 @@ def test_format():
|
|||
assert o1.__format__("+3") == '+0.3480(123)'
|
||||
assert o1.__format__("+2") == '+0.348(12)'
|
||||
assert o1.__format__(" 2") == ' 0.348(12)'
|
||||
|
||||
def test_f_string_obs():
|
||||
o1 = pe.pseudo_Obs(0.348, 0.0123, "test")
|
||||
print(f"{o1}")
|
||||
print(f"{o1:3}")
|
||||
print(f"{o1:+3}")
|
||||
print(f"{o1:-1}")
|
||||
print(f"{o1: 8}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue