mirror of
https://github.com/jeertmans/manim-slides.git
synced 2025-07-04 23:57:50 +08:00
chore(tests): zoom example
This commit is contained in:
@ -52,6 +52,22 @@ class TestSlide:
|
|||||||
assert text not in self.mobjects
|
assert text not in self.mobjects
|
||||||
assert bye in self.mobjects
|
assert bye in self.mobjects
|
||||||
|
|
||||||
|
@assert_construct
|
||||||
|
class TestZoom(Slide):
|
||||||
|
def construct(self) -> None:
|
||||||
|
text = Text("Some text")
|
||||||
|
bye = Text("Bye")
|
||||||
|
|
||||||
|
self.add(text)
|
||||||
|
|
||||||
|
assert text in self.mobjects
|
||||||
|
assert bye not in self.mobjects
|
||||||
|
|
||||||
|
self.play(self.zoom([text], [bye]))
|
||||||
|
|
||||||
|
assert text not in self.mobjects
|
||||||
|
assert bye in self.mobjects
|
||||||
|
|
||||||
@assert_construct
|
@assert_construct
|
||||||
class TestCanvas(Slide):
|
class TestCanvas(Slide):
|
||||||
def construct(self) -> None:
|
def construct(self) -> None:
|
||||||
|
Reference in New Issue
Block a user