Ejemplo n.º 1
0
    def test_order_of_magnitude4(self):
        """4th test of the lib.mathematics.order_of_magnitude function."""

        self.assertEqual(order_of_magnitude(1234), 4.0)
Ejemplo n.º 2
0
    def test_order_of_magnitude2(self):
        """2nd test of the lib.mathematics.order_of_magnitude function."""

        self.assertEqual(order_of_magnitude(12), 2.0)
Ejemplo n.º 3
0
    def test_order_of_magnitude3(self):
        """3rd test of the lib.mathematics.order_of_magnitude function."""

        self.assertEqual(order_of_magnitude(123), 3.0)
Ejemplo n.º 4
0
    def test_order_of_magnitude0(self):
        """0th test of the lib.mathematics.order_of_magnitude function."""

        self.assertEqual(order_of_magnitude(0.123), 0.0)
Ejemplo n.º 5
0
    def test_order_of_magnitude1(self):
        """1st test of the lib.mathematics.order_of_magnitude function."""

        self.assertEqual(order_of_magnitude(1.1), 1.0)
Ejemplo n.º 6
0
    def test_order_of_magnitude4(self):
        """4th test of the lib.mathematics.order_of_magnitude function."""

        self.assertEqual(order_of_magnitude(1234), 4.0)
Ejemplo n.º 7
0
    def test_order_of_magnitude3(self):
        """3rd test of the lib.mathematics.order_of_magnitude function."""

        self.assertEqual(order_of_magnitude(123), 3.0)
Ejemplo n.º 8
0
    def test_order_of_magnitude2(self):
        """2nd test of the lib.mathematics.order_of_magnitude function."""

        self.assertEqual(order_of_magnitude(12), 2.0)
Ejemplo n.º 9
0
    def test_order_of_magnitude1(self):
        """1st test of the lib.mathematics.order_of_magnitude function."""

        self.assertEqual(order_of_magnitude(1.1), 1.0)
Ejemplo n.º 10
0
    def test_order_of_magnitude0(self):
        """0th test of the lib.mathematics.order_of_magnitude function."""

        self.assertEqual(order_of_magnitude(0.123), 0.0)