Skip to content

Commit 422ad7b

Browse files
committed
Add test.
1 parent c83acf0 commit 422ad7b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

test/test_value_array.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,3 +286,10 @@ def test_ufunc() -> None:
286286
_ = np.subtract(x, y)
287287
with pytest.raises(UnitMismatchError):
288288
_ = np.subtract(y, x)
289+
290+
291+
def test_unique() -> None:
292+
xs = np.array([3.7, 0.9, 0.9, 4.3, 3.7])
293+
unit = tu.MHz
294+
v_arr = xs * unit
295+
assert np.array_equal(v_arr.unique(), np.unique(xs) * unit)

0 commit comments

Comments
 (0)