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