Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_cosinespace_increasing(self):
self.assert_space(cosinespace(0, 1, 2), [0, 1])
self.assert_space(cosinespace(0, 1, 3), [0, .5, 1])
def test_cosinespace_const(self):
self.assert_space(cosinespace(0, 0, 2), [0, 0])
def test_cosinespace_decreasing(self):
self.assert_space(cosinespace(1, 0, 2), [1, 0])
self.assert_space(cosinespace(1, 0, 3), [1, .5, 0])
def test_cosinespace_with_many_values(self):
self.assert_space(cosinespace(0, 1, 5), [0, .1464, .5, .8535, 1])
self.assert_space(cosinespace(1, 0, 5), [1, .8535, .5, .1464, 0])
def test_cosinespace_with_many_values(self):
self.assert_space(cosinespace(0, 1, 5), [0, .1464, .5, .8535, 1])
self.assert_space(cosinespace(1, 0, 5), [1, .8535, .5, .1464, 0])
def test_cosinespace_increasing(self):
self.assert_space(cosinespace(0, 1, 2), [0, 1])
self.assert_space(cosinespace(0, 1, 3), [0, .5, 1])
def test_cosinespace_decreasing(self):
self.assert_space(cosinespace(1, 0, 2), [1, 0])
self.assert_space(cosinespace(1, 0, 3), [1, .5, 0])