Ejemplo n.º 1
0
 def test_clipping_in(self):
     iv = IndependentVariable(0, 10)
     assert_equal(iv.clip(4.2), 4.2)
Ejemplo n.º 2
0
 def test_clipping_lo(self):
     iv = IndependentVariable(0, 10)
     assert_equal(iv.clip(-100), 0)
Ejemplo n.º 3
0
 def test_clipping_hi(self):
     iv = IndependentVariable(0, 10)
     assert_equal(iv.clip(10.5), 10)
Ejemplo n.º 4
0
 def test_clipping_in(self):
     iv = IndependentVariable(0, 10)
     assert_equal(iv.clip(4.2), 4.2)
Ejemplo n.º 5
0
 def test_clipping_lo(self):
     iv = IndependentVariable(0, 10)
     assert_equal(iv.clip(-100), 0)
Ejemplo n.º 6
0
 def test_clipping_hi(self):
     iv = IndependentVariable(0, 10)
     assert_equal(iv.clip(10.5), 10)