Example #1
0
 def test_zero(self):
     result = fixup_float32_from_int32(0)
     self.assertEqual(result, 0)
Example #2
0
 def test_positive(self):
     result = fixup_float32_from_int32(0x3f000000)
     self.assertEqual(result, 0.5)
Example #3
0
 def test_negative(self):
     result = fixup_float32_from_int32(-0x3f000000)
     self.assertEqual(result, -0.5)