()
| 19 | |
| 20 | |
| 21 | def test_chained_animate(): |
| 22 | s = Square() |
| 23 | scale_factor = 2 |
| 24 | direction = np.array((1, 1, 0)) |
| 25 | anim = s.animate.scale(scale_factor).shift(direction).build() |
| 26 | assert anim.mobject.target.width == scale_factor * s.width |
| 27 | assert (anim.mobject.target.get_center() == direction).all() |
| 28 | |
| 29 | |
| 30 | def test_overridden_animate(): |
nothing calls this directly
no test coverage detected