Пример #1
0
    def test_convert_4bytes_to_float_5(self):
        a_float = x.convert_4bytes_to_float(TestMethods.arr_5b, index=1)

        np.testing.assert_allclose(a_float, 6.2071626e-36)
Пример #2
0
 def test_convert_4bytes_to_float_6(self):
     with pytest.raises(AssertionError):
         x.convert_4bytes_to_float(TestMethods.arr_5b, index=2)
Пример #3
0
    def test_convert_4bytes_to_float_4(self):
        a_float = x.convert_4bytes_to_float(TestMethods.arr_5b)

        np.testing.assert_allclose(a_float, 1.5399896e-36)