Skip to content

Commit

Permalink
Create failing test case
Browse files Browse the repository at this point in the history
Copied the examples from the bug report and added an additional test case with the failing behavior multiple times in the same expression.
  • Loading branch information
KindaOK committed Nov 9, 2022
1 parent ffaaf48 commit 7b2c2ca
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions tests/data/simple_cases/deep_trailing_commas.py
@@ -0,0 +1,33 @@
assert foo(1, 2, 3,)[0] == {'bar': 'baz'}

a = [1,][2]()
b = [1,][2](3)

[1, 2,]()(3, 4,)()(5, 6,)(0)(0)

# output


assert foo(
1,
2,
3,
)[0] == {'bar': 'baz'}

a = [
1,
][2]()
b = [
1,
][2](3)

[
1,
2,
]()(
3,
4,
)()(
5,
6,
)(0)

0 comments on commit 7b2c2ca

Please sign in to comment.