Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
675bbc9f
Commit
675bbc9f
authored
6 years ago
by
Daniil Ovchinnikov
1
Browse files
Options
Download
Email Patches
Plain Diff
[groovy] update 'change to operator' inspection test data (IDEA-194503)
parent
93adbe54
Branches unavailable
Tags unavailable
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/groovy/test/org/jetbrains/plugins/groovy/inspections/GrChangeToOperatorTest.groovy
+4
-7
.../plugins/groovy/inspections/GrChangeToOperatorTest.groovy
with
4 additions
and
7 deletions
+4
-7
plugins/groovy/test/org/jetbrains/plugins/groovy/inspections/GrChangeToOperatorTest.groovy
+
4
-
7
View file @
675bbc9f
...
...
@@ -120,7 +120,7 @@ class Operators {
"a.leftShift(b)"
:
"a << b"
,
"a.rightShift(b)"
:
"a >> b"
,
"a.rightShiftUnsigned(b)"
:
"a >>> b"
,
"a.plus({ b })"
:
"a + { b }"
,
"a.plus({ b })"
:
"a + { b }"
,
].
each
{
doTest
it
.
key
,
it
.
value
}
...
...
@@ -254,10 +254,10 @@ class Operators {
doTest
"a.put<caret>At(b) { 1 }"
,
"a[b] = { 1 }"
doTest
(
''' a.put<caret>At(b) {
''' a.put<caret>At(b) {
return 1
};'''
,
'''a[b] = {
'''a[b] = {
return 1
};'''
)
}
...
...
@@ -280,9 +280,6 @@ class Operators {
doTest
"a.g<caret>etAt(b).field"
,
"a[b].field"
doTest
"a.p<caret>utAt(b, 1).field"
doTest
"a.ne<caret>xt().bytes"
doTest
"a.ne<caret>xt() + 1"
,
"++a + 1"
doTest
"[1, 2, 3].is<caret>Case(2-1)"
,
"2 - 1 in [1, 2, 3]"
doTest
"![1, 2, 3].is<caret>Case(2-1)"
...
...
@@ -338,7 +335,7 @@ class Inheritor extends Operators {
final
String
DECLARATIONS
=
'def (Operators a, Operators b) = [null, null]\n'
private
void
doTest
(
String
before
,
String
after
=
null
)
{
Closeable
closeCaret
=
{
fixture
.
editor
.
caretModel
.
moveToOffset
(
0
)}
Closeable
closeCaret
=
{
fixture
.
editor
.
caretModel
.
moveToOffset
(
0
)
}
closeCaret
.
withCloseable
{
fixture
.
with
{
...
...
This diff is collapsed.
Click to expand it.
小 白蛋
@baidan
mentioned in commit
ffa15fd3
·
2 years ago
mentioned in commit
ffa15fd3
mentioned in commit ffa15fd3745aa77e9118ce3f23566fc0d1bcbd9b
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help