Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

added test data

Hugues Devimeux345175272c6e
diff --git a/tests/tests_data/basic_scenes.py b/tests/tests_data/basic_scenes.py
new file mode 100644
index 000000000..c26357564
--- /dev/null
+++ b/tests/tests_data/basic_scenes.py
@@ -0,0 +1,31 @@
+from manim import *
+
+#This module is used for testing purpose only
+
+class SquareToCircle(Scene):
+ def construct(self):
+ circle = Circle()
+ square = Square()
+ square.flip(RIGHT)
+ square.rotate(-3 * TAU / 8)
+ circle.set_fill(PINK, opacity=0.5)
+
+ self.play(ShowCreation(square))
+ self.play(Transform(square, circle))
+ self.play(FadeOut(square))
+
+class WriteStuff(Scene):
+ def construct(self):
+ example_text = TextMobject(
+ "This is a some text",
+ tex_to_color_map={"text": YELLOW}
+ )
+ example_tex = TexMobject(
+ "\\sum_{k=1}^\\infty {1 \\over k^2} = {\\pi^2 \\over 6}",
+ )
+ group = VGroup(example_text, example_tex)
+ group.arrange(DOWN)
+ group.set_width(FRAME_WIDTH - 2 * LARGE_BUFF)
+
+ self.play(Write(example_text))
+ self.play(Write(example_tex))
diff --git a/tests/tests_data/creation/DrawBorderThenFillTest.npy b/tests/tests_data/creation/DrawBorderThenFillTest.npy
new file mode 100644
index 000000000..ccfc7f8aa
Binary files /dev/null and b/tests/tests_data/creation/DrawBorderThenFillTest.npy differ
diff --git a/tests/tests_data/creation/FadeInFromDownTest.npy b/tests/tests_data/creation/FadeInFromDownTest.npy
new file mode 100644
index 000000000..2d2fb7cc2
Binary files /dev/null and b/tests/tests_data/creation/FadeInFromDownTest.npy differ
diff --git a/tests/tests_data/creation/FadeInFromLargeTest.npy b/tests/tests_data/creation/FadeInFromLargeTest.npy
new file mode 100644
index 000000000..2d2fb7cc2
Binary files /dev/null and b/tests/tests_data/creation/FadeInFromLargeTest.npy differ
diff --git a/tests/tests_data/creation/FadeInFromTest.npy b/tests/tests_data/creation/FadeInFromTest.npy
new file mode 100644
index 000000000..2d2fb7cc2
Binary files /dev/null and b/tests/tests_data/creation/FadeInFromTest.npy differ
diff --git a/tests/tests_data/creation/FadeInTest.npy b/tests/tests_data/creation/FadeInTest.npy
new file mode 100644
index 000000000..2d2fb7cc2
Binary files /dev/null and b/tests/tests_data/creation/FadeInTest.npy differ
diff --git a/tests/tests_data/creation/FadeOutAndShiftTest.npy b/tests/tests_data/creation/FadeOutAndShiftTest.npy
new file mode 100644
index 000000000..de3abcab7
Binary files /dev/null and b/tests/tests_data/creation/FadeOutAndShiftTest.npy differ
diff --git a/tests/tests_data/creation/FadeOutTest.npy b/tests/tests_data/creation/FadeOutTest.npy
new file mode 100644
index 000000000..de3abcab7
Binary files /dev/null and b/tests/tests_data/creation/FadeOutTest.npy differ
diff --git a/tests/tests_data/creation/GrowFromCenterTest.npy b/tests/tests_data/creation/GrowFromCenterTest.npy
new file mode 100644
index 000000000..2d2fb7cc2
Binary files /dev/null and b/tests/tests_data/creation/GrowFromCenterTest.npy differ
diff --git a/tests/tests_data/creation/GrowFromEdgeTest.npy b/tests/tests_data/creation/GrowFromEdgeTest.npy
new file mode 100644
index 000000000..2d2fb7cc2
Binary files /dev/null and b/tests/tests_data/creation/GrowFromEdgeTest.npy differ
diff --git a/tests/tests_data/creation/GrowFromPointTest.npy b/tests/tests_data/creation/GrowFromPointTest.npy
new file mode 100644
index 000000000..2d2fb7cc2
Binary files /dev/null and b/tests/tests_data/creation/GrowFromPointTest.npy differ
diff --git a/tests/tests_data/creation/ShowCreationTest.npy b/tests/tests_data/creation/ShowCreationTest.npy
new file mode 100644
index 000000000..2d2fb7cc2
Binary files /dev/null and b/tests/tests_data/creation/ShowCreationTest.npy differ
diff --git a/tests/tests_data/creation/ShrinkToCenterTest.npy b/tests/tests_data/creation/ShrinkToCenterTest.npy
new file mode 100644
index 000000000..de3abcab7
Binary files /dev/null and b/tests/tests_data/creation/ShrinkToCenterTest.npy differ
diff --git a/tests/tests_data/creation/SpinInFromNothingTest.npy b/tests/tests_data/creation/SpinInFromNothingTest.npy
new file mode 100644
index 000000000..2d2fb7cc2
Binary files /dev/null and b/tests/tests_data/creation/SpinInFromNothingTest.npy differ
diff --git a/tests/tests_data/creation/UncreateTest.npy b/tests/tests_data/creation/UncreateTest.npy
new file mode 100644
index 000000000..de3abcab7
Binary files /dev/null and b/tests/tests_data/creation/UncreateTest.npy differ
diff --git a/tests/tests_data/creation/WriteTest.npy b/tests/tests_data/creation/WriteTest.npy
new file mode 100644
index 000000000..e80518177
Binary files /dev/null and b/tests/tests_data/creation/WriteTest.npy differ
diff --git a/tests/tests_data/geometry/AnnularSectorTest.npy b/tests/tests_data/geometry/AnnularSectorTest.npy
new file mode 100644
index 000000000..a15aa1244
Binary files /dev/null and b/tests/tests_data/geometry/AnnularSectorTest.npy differ
diff --git a/tests/tests_data/geometry/AnnulusTest.npy b/tests/tests_data/geometry/AnnulusTest.npy
new file mode 100644
index 000000000..7cb120b27
Binary files /dev/null and b/tests/tests_data/geometry/AnnulusTest.npy differ
diff --git a/tests/tests_data/geometry/ArcBetweenPointsTest.npy b/tests/tests_data/geometry/ArcBetweenPointsTest.npy
new file mode 100644
index 000000000..cc3ae5217
Binary files /dev/null and b/tests/tests_data/geometry/ArcBetweenPointsTest.npy differ
diff --git a/tests/tests_data/geometry/ArcTest.npy b/tests/tests_data/geometry/ArcTest.npy
new file mode 100644
index 000000000..7541b40f3
Binary files /dev/null and b/tests/tests_data/geometry/ArcTest.npy differ
diff --git a/tests/tests_data/geometry/CircleTest.npy b/tests/tests_data/geometry/CircleTest.npy
new file mode 100644
index 000000000..78f0f70f9
Binary files /dev/null and b/tests/tests_data/geometry/CircleTest.npy differ
diff --git a/tests/tests_data/geometry/CoordinatesTest.npy b/tests/tests_data/geometry/CoordinatesTest.npy
new file mode 100644
index 000000000..b4632579e
Binary files /dev/null and b/tests/tests_data/geometry/CoordinatesTest.npy differ
diff --git a/tests/tests_data/geometry/CurvedArrowTest.npy b/tests/tests_data/geometry/CurvedArrowTest.npy
new file mode 100644
index 000000000..4ce741372
Binary files /dev/null and b/tests/tests_data/geometry/CurvedArrowTest.npy differ
diff --git a/tests/tests_data/geometry/DotTest.npy b/tests/tests_data/geometry/DotTest.npy
new file mode 100644
index 000000000..5151b856c
Binary files /dev/null and b/tests/tests_data/geometry/DotTest.npy differ
diff --git a/tests/tests_data/geometry/DoubleArrowTest.npy b/tests/tests_data/geometry/DoubleArrowTest.npy
new file mode 100644
index 000000000..05be3f1d7
Binary files /dev/null and b/tests/tests_data/geometry/DoubleArrowTest.npy differ
diff --git a/tests/tests_data/geometry/Elbowtest.npy b/tests/tests_data/geometry/Elbowtest.npy
new file mode 100644
index 000000000..2fb455aa4
Binary files /dev/null and b/tests/tests_data/geometry/Elbowtest.npy differ
diff --git a/tests/tests_data/geometry/EllipseTest.npy b/tests/tests_data/geometry/EllipseTest.npy
new file mode 100644
index 000000000..ad08e2d8b
Binary files /dev/null and b/tests/tests_data/geometry/EllipseTest.npy differ
diff --git a/tests/tests_data/geometry/LineTest.npy b/tests/tests_data/geometry/LineTest.npy
new file mode 100644
index 000000000..2dcd9b595
Binary files /dev/null and b/tests/tests_data/geometry/LineTest.npy differ
diff --git a/tests/tests_data/geometry/PolygonTest.npy b/tests/tests_data/geometry/PolygonTest.npy
new file mode 100644
index 000000000..a7bb8e92c
Binary files /dev/null and b/tests/tests_data/geometry/PolygonTest.npy differ
diff --git a/tests/tests_data/geometry/RectangleTest.npy b/tests/tests_data/geometry/RectangleTest.npy
new file mode 100644
index 000000000..650779206
Binary files /dev/null and b/tests/tests_data/geometry/RectangleTest.npy differ
diff --git a/tests/tests_data/geometry/RoundedRectangleTest.npy b/tests/tests_data/geometry/RoundedRectangleTest.npy
new file mode 100644
index 000000000..4c73433bf
Binary files /dev/null and b/tests/tests_data/geometry/RoundedRectangleTest.npy differ
diff --git a/tests/tests_data/geometry/SectorTest.npy b/tests/tests_data/geometry/SectorTest.npy
new file mode 100644
index 000000000..c5ea54e63
Binary files /dev/null and b/tests/tests_data/geometry/SectorTest.npy differ
diff --git a/tests/tests_data/geometry/VectorTest.npy b/tests/tests_data/geometry/VectorTest.npy
new file mode 100644
index 000000000..70c3ab7eb
Binary files /dev/null and b/tests/tests_data/geometry/VectorTest.npy differ
diff --git a/tests/tests_data/indication/ApplyWaveTest.npy b/tests/tests_data/indication/ApplyWaveTest.npy
new file mode 100644
index 000000000..2d2fb7cc2
Binary files /dev/null and b/tests/tests_data/indication/ApplyWaveTest.npy differ
diff --git a/tests/tests_data/indication/CircleIndicateTest.npy b/tests/tests_data/indication/CircleIndicateTest.npy
new file mode 100644
index 000000000..2d2fb7cc2
Binary files /dev/null and b/tests/tests_data/indication/CircleIndicateTest.npy differ
diff --git a/tests/tests_data/indication/FlashTest.npy b/tests/tests_data/indication/FlashTest.npy
new file mode 100644
index 000000000..2d2fb7cc2
Binary files /dev/null and b/tests/tests_data/indication/FlashTest.npy differ
diff --git a/tests/tests_data/indication/FocusOnTest.npy b/tests/tests_data/indication/FocusOnTest.npy
new file mode 100644
index 000000000..2d2fb7cc2
Binary files /dev/null and b/tests/tests_data/indication/FocusOnTest.npy differ
diff --git a/tests/tests_data/indication/IndicateTest.npy b/tests/tests_data/indication/IndicateTest.npy
new file mode 100644
index 000000000..2d2fb7cc2
Binary files /dev/null and b/tests/tests_data/indication/IndicateTest.npy differ
diff --git a/tests/tests_data/indication/ShowCreationThenDestructionTest.npy b/tests/tests_data/indication/ShowCreationThenDestructionTest.npy
new file mode 100644
index 000000000..de3abcab7
Binary files /dev/null and b/tests/tests_data/indication/ShowCreationThenDestructionTest.npy differ
diff --git a/tests/tests_data/indication/ShowCreationThenFadeOutTest.npy b/tests/tests_data/indication/ShowCreationThenFadeOutTest.npy
new file mode 100644
index 000000000..de3abcab7
Binary files /dev/null and b/tests/tests_data/indication/ShowCreationThenFadeOutTest.npy differ
diff --git a/tests/tests_data/indication/ShowPassingFlashAroundTest.npy b/tests/tests_data/indication/ShowPassingFlashAroundTest.npy
new file mode 100644
index 000000000..de3abcab7
Binary files /dev/null and b/tests/tests_data/indication/ShowPassingFlashAroundTest.npy differ
diff --git a/tests/tests_data/indication/ShowPassingFlashTest.npy b/tests/tests_data/indication/ShowPassingFlashTest.npy
new file mode 100644
index 000000000..de3abcab7
Binary files /dev/null and b/tests/tests_data/indication/ShowPassingFlashTest.npy differ
diff --git a/tests/tests_data/indication/TurnInsideOutTest.npy b/tests/tests_data/indication/TurnInsideOutTest.npy
new file mode 100644
index 000000000..2d2fb7cc2
Binary files /dev/null and b/tests/tests_data/indication/TurnInsideOutTest.npy differ
diff --git a/tests/tests_data/indication/WiggleOutThenInTest.npy b/tests/tests_data/indication/WiggleOutThenInTest.npy
new file mode 100644
index 000000000..2d2fb7cc2
Binary files /dev/null and b/tests/tests_data/indication/WiggleOutThenInTest.npy differ
diff --git a/tests/tests_data/movements/HomotopyTest.npy b/tests/tests_data/movements/HomotopyTest.npy
new file mode 100644
index 000000000..60af6c7b6
Binary files /dev/null and b/tests/tests_data/movements/HomotopyTest.npy differ
diff --git a/tests/tests_data/movements/MoveAlongPathTest.npy b/tests/tests_data/movements/MoveAlongPathTest.npy
new file mode 100644
index 000000000..a531aa13b
Binary files /dev/null and b/tests/tests_data/movements/MoveAlongPathTest.npy differ
diff --git a/tests/tests_data/movements/MoveToTest.npy b/tests/tests_data/movements/MoveToTest.npy
new file mode 100644
index 000000000..4f22b1523
Binary files /dev/null and b/tests/tests_data/movements/MoveToTest.npy differ
diff --git a/tests/tests_data/movements/PhaseFlowTest.npy b/tests/tests_data/movements/PhaseFlowTest.npy
new file mode 100644
index 000000000..cbc3eb597
Binary files /dev/null and b/tests/tests_data/movements/PhaseFlowTest.npy differ
diff --git a/tests/tests_data/movements/RotateTest.npy b/tests/tests_data/movements/RotateTest.npy
new file mode 100644
index 000000000..2d2fb7cc2
Binary files /dev/null and b/tests/tests_data/movements/RotateTest.npy differ
diff --git a/tests/tests_data/movements/ShiftTest.npy b/tests/tests_data/movements/ShiftTest.npy
new file mode 100644
index 000000000..67bb448cb
Binary files /dev/null and b/tests/tests_data/movements/ShiftTest.npy differ
diff --git a/tests/tests_data/sample_scenes/BasicScene.npy b/tests/tests_data/sample_scenes/BasicScene.npy
new file mode 100644
index 000000000..2d2fb7cc2
Binary files /dev/null and b/tests/tests_data/sample_scenes/BasicScene.npy differ
diff --git a/tests/tests_data/sample_scenes/BasicTex.npy b/tests/tests_data/sample_scenes/BasicTex.npy
new file mode 100644
index 000000000..188dd5e2d
Binary files /dev/null and b/tests/tests_data/sample_scenes/BasicTex.npy differ
diff --git a/tests/tests_data/sample_scenes/GeometryScene.npy b/tests/tests_data/sample_scenes/GeometryScene.npy
new file mode 100644
index 000000000..1f0353683
Binary files /dev/null and b/tests/tests_data/sample_scenes/GeometryScene.npy differ
diff --git a/tests/tests_data/threed/AmbientCameraMoveTest.npy b/tests/tests_data/threed/AmbientCameraMoveTest.npy
new file mode 100644
index 000000000..001d7c56f
Binary files /dev/null and b/tests/tests_data/threed/AmbientCameraMoveTest.npy differ
diff --git a/tests/tests_data/threed/AxesTest.npy b/tests/tests_data/threed/AxesTest.npy
new file mode 100644
index 000000000..0cb1f4e3e
Binary files /dev/null and b/tests/tests_data/threed/AxesTest.npy differ
diff --git a/tests/tests_data/threed/CameraMoveTest.npy b/tests/tests_data/threed/CameraMoveTest.npy
new file mode 100644
index 000000000..515e608e0
Binary files /dev/null and b/tests/tests_data/threed/CameraMoveTest.npy differ
diff --git a/tests/tests_data/threed/CubeTest.npy b/tests/tests_data/threed/CubeTest.npy
new file mode 100644
index 000000000..31df75ae6
Binary files /dev/null and b/tests/tests_data/threed/CubeTest.npy differ
diff --git a/tests/tests_data/threed/SphereTest.npy b/tests/tests_data/threed/SphereTest.npy
new file mode 100644
index 000000000..afb6a1d98
Binary files /dev/null and b/tests/tests_data/threed/SphereTest.npy differ
diff --git a/tests/tests_data/transform/ApplyComplexFunctionTest.npy b/tests/tests_data/transform/ApplyComplexFunctionTest.npy
new file mode 100644
index 000000000..ebd795960
Binary files /dev/null and b/tests/tests_data/transform/ApplyComplexFunctionTest.npy differ
diff --git a/tests/tests_data/transform/ApplyFunctionTest.npy b/tests/tests_data/transform/ApplyFunctionTest.npy
new file mode 100644
index 000000000..a22156c7d
Binary files /dev/null and b/tests/tests_data/transform/ApplyFunctionTest.npy differ
diff --git a/tests/tests_data/transform/ApplyMatrixTest.npy b/tests/tests_data/transform/ApplyMatrixTest.npy
new file mode 100644
index 000000000..e3f12518a
Binary files /dev/null and b/tests/tests_data/transform/ApplyMatrixTest.npy differ
diff --git a/tests/tests_data/transform/ApplyPointwiseFunctionTest.npy b/tests/tests_data/transform/ApplyPointwiseFunctionTest.npy
new file mode 100644
index 000000000..de3abcab7
Binary files /dev/null and b/tests/tests_data/transform/ApplyPointwiseFunctionTest.npy differ
diff --git a/tests/tests_data/transform/ClockwiseTransformTest.npy b/tests/tests_data/transform/ClockwiseTransformTest.npy
new file mode 100644
index 000000000..78f0f70f9
Binary files /dev/null and b/tests/tests_data/transform/ClockwiseTransformTest.npy differ
diff --git a/tests/tests_data/transform/CounterclockwiseTransformTest.npy b/tests/tests_data/transform/CounterclockwiseTransformTest.npy
new file mode 100644
index 000000000..78f0f70f9
Binary files /dev/null and b/tests/tests_data/transform/CounterclockwiseTransformTest.npy differ
diff --git a/tests/tests_data/transform/CyclicReplaceTest.npy b/tests/tests_data/transform/CyclicReplaceTest.npy
new file mode 100644
index 000000000..0cab724b1
Binary files /dev/null and b/tests/tests_data/transform/CyclicReplaceTest.npy differ
diff --git a/tests/tests_data/transform/FadeToColortTest.npy b/tests/tests_data/transform/FadeToColortTest.npy
new file mode 100644
index 000000000..f303647c0
Binary files /dev/null and b/tests/tests_data/transform/FadeToColortTest.npy differ
diff --git a/tests/tests_data/transform/MoveToTargetTest.npy b/tests/tests_data/transform/MoveToTargetTest.npy
new file mode 100644
index 000000000..e16b35b0a
Binary files /dev/null and b/tests/tests_data/transform/MoveToTargetTest.npy differ
diff --git a/tests/tests_data/transform/RestoreTest.npy b/tests/tests_data/transform/RestoreTest.npy
new file mode 100644
index 000000000..78f0f70f9
Binary files /dev/null and b/tests/tests_data/transform/RestoreTest.npy differ
diff --git a/tests/tests_data/transform/ScaleInPlaceTest.npy b/tests/tests_data/transform/ScaleInPlaceTest.npy
new file mode 100644
index 000000000..50da222f5
Binary files /dev/null and b/tests/tests_data/transform/ScaleInPlaceTest.npy differ
diff --git a/tests/tests_data/transform/ShrinkToCenterTest.npy b/tests/tests_data/transform/ShrinkToCenterTest.npy
new file mode 100644
index 000000000..de3abcab7
Binary files /dev/null and b/tests/tests_data/transform/ShrinkToCenterTest.npy differ
diff --git a/tests/tests_data/transform/TransformFromCopyTest.npy b/tests/tests_data/transform/TransformFromCopyTest.npy
new file mode 100644
index 000000000..78f0f70f9
Binary files /dev/null and b/tests/tests_data/transform/TransformFromCopyTest.npy differ
diff --git a/tests/tests_data/transform/TransformTest.npy b/tests/tests_data/transform/TransformTest.npy
new file mode 100644
index 000000000..78f0f70f9
Binary files /dev/null and b/tests/tests_data/transform/TransformTest.npy differ
diff --git a/tests/tests_data/updaters/UpdaterTest.npy b/tests/tests_data/updaters/UpdaterTest.npy
new file mode 100644
index 000000000..b0b48565c
Binary files /dev/null and b/tests/tests_data/updaters/UpdaterTest.npy differ
diff --git a/tests/tests_data/updaters/ValueTrackerTest.npy b/tests/tests_data/updaters/ValueTrackerTest.npy
new file mode 100644
index 000000000..de3abcab7
Binary files /dev/null and b/tests/tests_data/updaters/ValueTrackerTest.npy differ
diff --git a/tests/tests_data/writing/TexMobjectTest.npy b/tests/tests_data/writing/TexMobjectTest.npy
new file mode 100644
index 000000000..83cde8237
Binary files /dev/null and b/tests/tests_data/writing/TexMobjectTest.npy differ
diff --git a/tests/tests_data/writing/TextMobjectTest.npy b/tests/tests_data/writing/TextMobjectTest.npy
new file mode 100644
index 000000000..f9215108c
Binary files /dev/null and b/tests/tests_data/writing/TextMobjectTest.npy differ
diff --git a/tests/tests_data/writing/TextTest.npy b/tests/tests_data/writing/TextTest.npy
new file mode 100644
index 000000000..b3e2559e2
Binary files /dev/null and b/tests/tests_data/writing/TextTest.npy differ