def test_float_int_3tuple(self): self._ending_tester((1, 2, 3), float, ValueRange(1.0, 2.0, 3.0))
def test_int_0(self): self._ending_tester(ValueRange(1, 3, 0), 0.0, 1)
def test_float_scalar(self): self._ending_tester(1.0, float, ValueRange(1.0, 1.0, 0.0))
def test_float_2tuple(self): self._ending_tester((1.0, 2.0), float, ValueRange(1.0, 2.0, 0.0))
def test_int_str_scalar_radius(self): self._ending_tester('1~3', int, ValueRange(1, 1, 3))
def test_float_str_range_radius(self): self._ending_tester('1.0:2.0~3.0', float, ValueRange(1.0, 2.0, 3.0))
def test_int_2tuple(self): self._ending_tester((1, 2), int, ValueRange(1, 2, 0))
def test_float_half(self): self._ending_tester(ValueRange(1.0, 2.0, 0.0), 0.5, 1.5)
def test_int_str_range_radius(self): self._ending_tester('1:2~3', int, ValueRange(1, 2, 3))
def test_int_scalar(self): self._ending_tester(1, int, ValueRange(1, 1, 0))
def test_int_str_range(self): self._ending_tester('1:2', int, ValueRange(1, 2, 0))
def test_float_1(self): self._ending_tester(ValueRange(10000.0, 30000.0, 10000.0), 0.8, 1.0, 16000.0, 40000.0)
def test_float_half(self): self._ending_tester(ValueRange(10000.0, 30000.0, 10000.0), 0.4, 0.6, 8000.0, 32000.0)
def test_int_half(self): self._ending_tester(ValueRange(1, 3, 0), 0.5, 2)
def test_int_3tuple(self): self._ending_tester((1, 2, 3), int, ValueRange(1, 2, 3))
def test_int_1(self): self._ending_tester(ValueRange(1, 3, 0), 1.0, 3)
def test_float_str_range(self): self._ending_tester('1.0:2.0', float, ValueRange(1.0, 2.0, 0.0))
def test_float_1(self): self._ending_tester(ValueRange(1.0, 2.0, 0.0), 1.0, 2.0)
def test_float_0(self): self._ending_tester(ValueRange(10000.0, 30000.0, 10000.0), 0.0, 0.1, 0.0, 22000.0)