(Poly)
| 534 | |
| 535 | |
| 536 | def test_truncate(Poly): |
| 537 | p = Poly([1, 2, 3]) |
| 538 | assert_raises(ValueError, p.truncate, .5) |
| 539 | assert_raises(ValueError, p.truncate, 0) |
| 540 | assert_equal(len(p.truncate(4)), 3) |
| 541 | assert_equal(len(p.truncate(3)), 3) |
| 542 | assert_equal(len(p.truncate(2)), 2) |
| 543 | assert_equal(len(p.truncate(1)), 1) |
| 544 | |
| 545 | |
| 546 | def test_trim(Poly): |
nothing calls this directly
no test coverage detected