예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #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)