| 1530 | |
| 1531 | |
| 1532 | class TestCFloat(TraitTestBase): |
| 1533 | obj = CFloatTrait() |
| 1534 | |
| 1535 | _default_value = 99.0 |
| 1536 | _good_values = [10, 10.0, 10.5, "10.0", "10", "-10"] |
| 1537 | _bad_values = ["ten", [10], {"ten": 10}, (10,), None, 1j, 200.1, "200.1"] |
| 1538 | |
| 1539 | def coerce(self, v): |
| 1540 | return float(v) |
| 1541 | |
| 1542 | |
| 1543 | class ComplexTrait(HasTraits): |
nothing calls this directly
no test coverage detected
searching dependent graphs…