def test_clip_above_range(self): assert_that(clip(1.5, 0, 1), equal_to(1.0))
def test_clip_below_range(self): assert_that(clip(-0.5, 0, 1), equal_to(0.0))
def test_clip_in_range(self): assert_that(clip(0.5, 0, 1), equal_to(0.5))