Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
    def test_order_of_magnitude4(self):
        """4th test of the lib.mathematics.order_of_magnitude function."""

        self.assertEqual(order_of_magnitude(1234), 4.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)
    def test_order_of_magnitude2(self):
        """2nd test of the lib.mathematics.order_of_magnitude function."""

        self.assertEqual(order_of_magnitude(12), 2.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)
    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)