(self)
| 10 | |
| 11 | class TestFromString: |
| 12 | def test_floating(self): |
| 13 | # Ticket #640, floats from string |
| 14 | fsingle = np.single('1.234') |
| 15 | fdouble = np.double('1.234') |
| 16 | flongdouble = np.longdouble('1.234') |
| 17 | assert_almost_equal(fsingle, 1.234) |
| 18 | assert_almost_equal(fdouble, 1.234) |
| 19 | assert_almost_equal(flongdouble, 1.234) |
| 20 | |
| 21 | def test_floating_overflow(self): |
| 22 | """ Strings containing an unrepresentable float overflow """ |
nothing calls this directly
no test coverage detected