def test_random_values(self):
        for i in range(100):
            start = random.random()
            end = random.random()
            if start > end:
                start, end = end, start
            value = random_float_between_noninclusive(start, end)

            check the returned value
Exemple #2
0
    def test_random_values(self):
        for i in range(100):
            start = random.random()
            end = random.random()
            if start > end:
                start, end = end, start
            value = random_float_between_noninclusive(start, end)

            self.assertGreater(value, start)
            self.assertLess(value, end)
    def test_random_values(self):
        for i in range(100):
            start = random.random()
            end = random.random()
            if start > end:
                start, end = end, start
            value = random_float_between_noninclusive(start, end)

            self.assertGreater(value, start)
            self.assertLess(value, end)