def test_1000(self): val = soft.step(self.vals[3], self.limit, scale=0.001) self.assertEqual(val, 1)
def test_25(self): val = soft.step(self.vals[1], self.limit, scale=0.001) self.assertAlmostEqual(val, 0)
def test_25_sidem1(self): val = soft.step(self.vals[1], self.limit, side=-1, scale=0.001) self.assertEqual(val, 1)
def test_1000_sidem1(self): val = soft.step(self.vals[3], self.limit, side=-1, scale=0.001) self.assertAlmostEqual(val, 0)
def test_35_side1(self): val = soft.step(self.vals[2], self.limit, side=1, scale=0.001) self.assertEqual(val, 1)