Exemple #1
0
 def test_float_int_3tuple(self):
     self._ending_tester((1, 2, 3), float, ValueRange(1.0, 2.0, 3.0))
Exemple #2
0
 def test_int_0(self):
     self._ending_tester(ValueRange(1, 3, 0), 0.0, 1)
Exemple #3
0
 def test_float_scalar(self):
     self._ending_tester(1.0, float, ValueRange(1.0, 1.0, 0.0))
Exemple #4
0
 def test_float_2tuple(self):
     self._ending_tester((1.0, 2.0), float, ValueRange(1.0, 2.0, 0.0))
Exemple #5
0
 def test_int_str_scalar_radius(self):
     self._ending_tester('1~3', int, ValueRange(1, 1, 3))
Exemple #6
0
 def test_float_str_range_radius(self):
     self._ending_tester('1.0:2.0~3.0', float, ValueRange(1.0, 2.0, 3.0))
Exemple #7
0
 def test_int_2tuple(self):
     self._ending_tester((1, 2), int, ValueRange(1, 2, 0))
Exemple #8
0
 def test_float_half(self):
     self._ending_tester(ValueRange(1.0, 2.0, 0.0), 0.5, 1.5)
Exemple #9
0
 def test_int_str_range_radius(self):
     self._ending_tester('1:2~3', int, ValueRange(1, 2, 3))
Exemple #10
0
 def test_int_scalar(self):
     self._ending_tester(1, int, ValueRange(1, 1, 0))
Exemple #11
0
 def test_int_str_range(self):
     self._ending_tester('1:2', int, ValueRange(1, 2, 0))
Exemple #12
0
 def test_float_1(self):
     self._ending_tester(ValueRange(10000.0, 30000.0, 10000.0), 0.8, 1.0,
                         16000.0, 40000.0)
Exemple #13
0
 def test_float_half(self):
     self._ending_tester(ValueRange(10000.0, 30000.0, 10000.0), 0.4, 0.6,
                         8000.0, 32000.0)
Exemple #14
0
 def test_int_half(self):
     self._ending_tester(ValueRange(1, 3, 0), 0.5, 2)
Exemple #15
0
 def test_int_3tuple(self):
     self._ending_tester((1, 2, 3), int, ValueRange(1, 2, 3))
Exemple #16
0
 def test_int_1(self):
     self._ending_tester(ValueRange(1, 3, 0), 1.0, 3)
Exemple #17
0
 def test_float_str_range(self):
     self._ending_tester('1.0:2.0', float, ValueRange(1.0, 2.0, 0.0))
Exemple #18
0
 def test_float_1(self):
     self._ending_tester(ValueRange(1.0, 2.0, 0.0), 1.0, 2.0)
Exemple #19
0
 def test_float_0(self):
     self._ending_tester(ValueRange(10000.0, 30000.0, 10000.0), 0.0, 0.1,
                         0.0, 22000.0)