Skip to content

Commit

Permalink
Add tests for module spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
benber86 committed Aug 24, 2024
1 parent 3ce8462 commit 49c3458
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/data/modules/exports_spacing.vy
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
exports : (
abc.xyz,
efg.xyz,
hij.bcd,
xyz.abc
)
exports : abc.def
exports : (
# comment
aaaaaaaaaaaaaaaa.bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb,
aaaaaaaaaaaaaaaa.bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb,
aaaaaaaaaaaaaaaa.bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb,)
# output
exports: (abc.xyz, efg.xyz, hij.bcd, xyz.abc)
exports: abc.def
exports: (
# comment
aaaaaaaaaaaaaaaa.bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb,
aaaaaaaaaaaaaaaa.bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb,
aaaaaaaaaaaaaaaa.bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb,
)


7 changes: 7 additions & 0 deletions tests/data/modules/initializes_spacing.vy
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
initializes : fgh

initializes : xyz [ abc := efg ]
# output
initializes: fgh

initializes: xyz[abc := efg]
7 changes: 7 additions & 0 deletions tests/data/modules/uses_implements_spacing.vy
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
uses : fgh

implements : abc
# output
uses: fgh

implements: abc

0 comments on commit 49c3458

Please sign in to comment.