Skip to content

Commit e556700

Browse files
add test
1 parent 2484f21 commit e556700

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/test_value_array.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,3 +263,8 @@ class _InvalidUnit:
263263
def test_invalid_unit_raises_error() -> None:
264264
with pytest.raises(ValueError):
265265
_ = tu.ValueArray([1, 2], _InvalidUnit())
266+
267+
268+
def test_format():
269+
u = tu.GHz * np.random.random(10)
270+
assert f'{u=}' == str(u)

0 commit comments

Comments
 (0)