manim/tests
leleogere 476ac4efb9
Fix :meth:~.input_to_graph_point when passing a line_graph (#1994)
* Fix the bounds of the binary search

* Fix the binary_search when the point in on a bound (return the proportion instead of the function value)

* Add an error when x is not in the graph range

* Allow to pass a VMobject to input_to_graph_point (type of a line_graph?)

* Modify the test to reflect fixed bug

* Update according to pre-commit

* Add the exception in the docstring

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Convert a string into f-string

Co-authored-by: Léo Géré <leo.gere@inrae.fr>
Co-authored-by: Laith Bahodi <70682032+hydrobeam@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Léo Géré <gere@etud.insa-toulouse.fr>
2021-09-07 20:29:55 +02:00
..
control_data Flake8 Changes + Fixing Warnings (#1968) 2021-09-03 13:45:48 -04:00
helpers Flake8 Changes + Fixing Warnings (#1968) 2021-09-03 13:45:48 -04:00
test_graphical_units Flake8 Changes + Fixing Warnings (#1968) 2021-09-03 13:45:48 -04:00
test_logging Flake8 Changes + Fixing Warnings (#1968) 2021-09-03 13:45:48 -04:00
test_plugins Flake8 Changes + Fixing Warnings (#1968) 2021-09-03 13:45:48 -04:00
test_scene_rendering Flake8 Changes + Fixing Warnings (#1968) 2021-09-03 13:45:48 -04:00
utils Flake8 Changes + Fixing Warnings (#1968) 2021-09-03 13:45:48 -04:00
__init__.py CI: Add support for using Opengl in Subprocess (Windows) (#1987) 2021-08-31 13:16:20 +01:00
assert_utils.py Fixed issue when an animation is cached, manim can't merge the partial movie files. (#1192) 2021-03-31 20:23:43 +05:30
conftest.py Flake8 Changes + Fixing Warnings (#1968) 2021-09-03 13:45:48 -04:00
template_generate_graphical_units_data.py Flake8 Changes + Fixing Warnings (#1968) 2021-09-03 13:45:48 -04:00
test_animate.py Flake8 Changes + Fixing Warnings (#1968) 2021-09-03 13:45:48 -04:00
test_axes_shift.py Removed :class:~.GraphScene, :class:~.NumberLineOld and parameters for :class:~.ChangingDecimal (#1860) 2021-08-04 01:04:18 -04:00
test_color.py Format Imports using Isort (#1178) 2021-04-03 13:45:12 +05:30
test_commands.py Flake8 Changes + Fixing Warnings (#1968) 2021-09-03 13:45:48 -04:00
test_composition.py Fading module enhancements (#1454) 2021-05-15 16:23:47 +02:00
test_config.py Flake8 Changes + Fixing Warnings (#1968) 2021-09-03 13:45:48 -04:00
test_coordinate_system.py Fix :meth:~.input_to_graph_point when passing a line_graph (#1994) 2021-09-07 20:29:55 +02:00
test_copy.py Upgrade to modern Python syntax (#1956) 2021-08-24 20:28:55 +08:00
test_deprecation.py Flake8 Changes + Fixing Warnings (#1968) 2021-09-03 13:45:48 -04:00
test_family.py Format Imports using Isort (#1178) 2021-04-03 13:45:12 +05:30
test_get_set.py Format Imports using Isort (#1178) 2021-04-03 13:45:12 +05:30
test_graph.py Upgrade to modern Python syntax (#1956) 2021-08-24 20:28:55 +08:00
test_hashing.py Flake8 Changes + Fixing Warnings (#1968) 2021-09-03 13:45:48 -04:00
test_ipython_magic.py Improve jupyter output file naming (#1649) 2021-06-13 09:09:17 +02:00
test_markup.py Format Imports using Isort (#1178) 2021-04-03 13:45:12 +05:30
test_mobject.py Removed Container ABC (#1652) 2021-06-24 08:13:24 -07:00
test_number_line.py Flake8 Changes + Fixing Warnings (#1968) 2021-09-03 13:45:48 -04:00
test_numbers.py Use height to determine font_size instead of the _font_size attribute. (#1985) 2021-08-31 22:44:25 +00:00
test_opengl_metaclass.py Allow to switch the renderer to opengl at runtime (#1899) 2021-08-23 18:39:39 -04:00
test_override_animation.py Added :func:~.override_animation decorator (#1422) 2021-05-15 15:20:39 +02:00
test_scene.py Removed Container ABC (#1652) 2021-06-24 08:13:24 -07:00
test_set_attr.py Flake8 Changes + Fixing Warnings (#1968) 2021-09-03 13:45:48 -04:00
test_sound.py Try pytest-xdist for parallelization in tests (#1556) 2021-05-25 11:26:03 +05:30
test_stroke.py Format Imports using Isort (#1178) 2021-04-03 13:45:12 +05:30
test_svg_mobject.py Flake8 Changes + Fixing Warnings (#1968) 2021-09-03 13:45:48 -04:00
test_texmobject.py Flake8 Changes + Fixing Warnings (#1968) 2021-09-03 13:45:48 -04:00
test_text_mobject.py Use height to determine font_size instead of the _font_size attribute. (#1985) 2021-08-31 22:44:25 +00:00
test_ticks.py Flake8 Changes + Fixing Warnings (#1968) 2021-09-03 13:45:48 -04:00
test_unit_geometry.py Format Imports using Isort (#1178) 2021-04-03 13:45:12 +05:30
test_units.py Format Imports using Isort (#1178) 2021-04-03 13:45:12 +05:30
test_value_tracker.py Expand documentation, testing, and functionality of ValueTrackers; remove ExponentialValueTracker (#1382) 2021-05-12 11:17:29 +02:00
test_vectorized_mobject.py Flake8 Changes + Fixing Warnings (#1968) 2021-09-03 13:45:48 -04:00
test_version.py Format Imports using Isort (#1178) 2021-04-03 13:45:12 +05:30