Skip to content

Commit

Permalink
Fixed test failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
byrdie committed Nov 20, 2023
1 parent b0cf3bf commit 6c0739c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion colorsynth/_tests/test_colorsynth.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ def test_XYZ_normalized(
result = colorsynth.XYZ_normalized(XYZ, axis=axis)
assert isinstance(result, np.ndarray)
assert result.shape[axis] == 3
assert np.take(result, 1, axis=axis).max() == 1
assert np.take(result, 1, axis=axis).max() <= 1


@pytest.mark.parametrize("XYZ", XYZ)
@pytest.mark.parametrize(argnames="axis", argvalues=[-1])
Expand Down

0 comments on commit 6c0739c

Please sign in to comment.