Skip to content

Commit

Permalink
Add test for int literal
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsdebruin committed Jan 9, 2025
1 parent 865251f commit 8dab859
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions rewrite/tests/python/all/format/tabs_and_indents_visitor_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,19 @@ def test_string_literal_comment():
)


def test_int_literal_comment():
style = IntelliJ.tabs_and_indents().with_use_tab_character(False).with_tab_size(4)
rewrite_run(
# language=python
python(
'''
1
'''
),
spec=RecipeSpec().with_recipes(from_visitor(TabsAndIndentsVisitor(style)))
)


def test_docstring_alignment():
style = IntelliJ.tabs_and_indents().with_use_tab_character(False).with_tab_size(4)
rewrite_run(
Expand Down

0 comments on commit 8dab859

Please sign in to comment.