mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
15 lines
295 B
Python
15 lines
295 B
Python
from manim.mobject.text.code_mobject import Code
|
|
|
|
|
|
def test_code_indentation():
|
|
co = Code(
|
|
code="""\
|
|
def test()
|
|
print("Hi")
|
|
""",
|
|
language="Python",
|
|
indentation_chars=" ",
|
|
)
|
|
|
|
assert co.tab_spaces[0] == 1
|
|
assert co.tab_spaces[1] == 2
|