Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpza committed Jan 18, 2025
1 parent 6b56a6f commit 2ba86bd
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/formatters/installers/gdformat.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pip3 install "gdtoolkit==4.*"
9 changes: 9 additions & 0 deletions test/formatters/samplecode/gdformat/in.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class X:
var x=[1,2,{'a':1}]
var y=[1,2,3,] # trailing comma
func foo(a:int,b,c=[1,2,3]):
if a in c and \
b > 100:
print('foo')
func bar():
print('bar')
15 changes: 15 additions & 0 deletions test/formatters/samplecode/gdformat/out.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
class X:
var x = [1, 2, {"a": 1}]
var y = [
1,
2,
3,
] # trailing comma

func foo(a: int, b, c = [1, 2, 3]):
if a in c and b > 100:
print("foo")


func bar():
print("bar")

0 comments on commit 2ba86bd

Please sign in to comment.