コード例 #1
0
 def test_clipping_in(self):
     iv = IndependentVariable(0, 10)
     assert_equal(iv.clip(4.2), 4.2)
コード例 #2
0
 def test_clipping_lo(self):
     iv = IndependentVariable(0, 10)
     assert_equal(iv.clip(-100), 0)
コード例 #3
0
 def test_clipping_hi(self):
     iv = IndependentVariable(0, 10)
     assert_equal(iv.clip(10.5), 10)
コード例 #4
0
 def test_clipping_in(self):
     iv = IndependentVariable(0, 10)
     assert_equal(iv.clip(4.2), 4.2)
コード例 #5
0
 def test_clipping_lo(self):
     iv = IndependentVariable(0, 10)
     assert_equal(iv.clip(-100), 0)
コード例 #6
0
 def test_clipping_hi(self):
     iv = IndependentVariable(0, 10)
     assert_equal(iv.clip(10.5), 10)