-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for #1219: find offset of rbrack before compacting list expression
- Loading branch information
1 parent
3e8474d
commit 1ec3d8d
Showing
4 changed files
with
50 additions
and
82 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
...haus.groovy.eclipse.refactoring.test/resources/Formatter/Formatter_Test_List_spock_expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
###prop | ||
setPreferences=true | ||
indentendOnly=false | ||
###src | ||
class Issue1219 extends spock.lang.Specification { | ||
void 'test'() { | ||
expect: | ||
[] == [] | ||
toString() | ||
} | ||
} | ||
###exp | ||
class Issue1219 extends spock.lang.Specification { | ||
void 'test'() { | ||
expect: | ||
[] == [] | ||
toString() | ||
} | ||
} | ||
###end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,6 @@ def test() { | |
###exp | ||
// GRECLIPSE-1427 | ||
def test() { | ||
[1, 2, 3 | ||
] as Object[] | ||
[1, 2, 3] as Object[] | ||
} | ||
###end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ def test() { | |
[ | ||
1, | ||
2, | ||
3] as Object[] | ||
3 | ||
] as Object[] | ||
} | ||
###end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters