Example #1
0
 def test_iterable_value_any_exclusif(self):
     self.assertFalse(
         between([0, 1, 2, 3, 4, 5],
                 borne_inf=0,
                 borne_sup=1,
                 exclusif=True,
                 evaluation=any))
Example #2
0
 def test_iterable_value_all(self):
     self.assertTrue(
         between([0, 1, 2, 3, 4, 5],
                 borne_inf=0,
                 borne_sup=10,
                 exclusif=False,
                 evaluation=all))
Example #3
0
 def test_value_dans_bornes_exclusif(self):
     self.assertTrue(between(0.5, -1, 1, exclusif=True))
Example #4
0
 def test_value_dans_bornes(self):
     self.assertTrue(between(0.5, -1, 1))
Example #5
0
 def test_valeur_hors_bornes_exclusif(self):
     self.assertFalse(between(0, 0, 1, exclusif=True))
     self.assertFalse(between(1, 0, 1, exclusif=True))
Example #6
0
 def test_valeur_hors_bornes(self):
     self.assertFalse(between(0, 0.5, 10))
     self.assertFalse(between(1, -1, 0))