Skip to content

Commit

Permalink
fixup! fixup! tests/unittests: test black corner case for color_rgb2h…
Browse files Browse the repository at this point in the history
…sv()
  • Loading branch information
miri64 committed Sep 27, 2019
1 parent 7473389 commit 097fce0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/unittests/tests-color/tests-color.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,11 @@ static void test_rgb2hsv__black(void)

/* XXX floats should never be compared for equality, so we check if we
* are within HSV_EPSILON of tolerance */
TEST_ASSERT(-HSV_EPSILON <= hsv.h);
TEST_ASSERT(-HSV_EPSILON <= hsv.s);
TEST_ASSERT(-HSV_EPSILON <= hsv.v);
TEST_ASSERT( HSV_EPSILON >= hsv.h);
TEST_ASSERT( HSV_EPSILON >= hsv.s);
TEST_ASSERT( HSV_EPSILON >= hsv.v);
/* Hue for black is undefined so we don't check it */
}

static void test_rgb_invert__success(void)
Expand Down

0 comments on commit 097fce0

Please sign in to comment.