Skip to content

Commit

Permalink
Fix test names, remove call argument names for non-booleans
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-dingemans committed May 29, 2024
1 parent 10a5404 commit 43e611d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class SpacingAroundCurlyRuleTest {
}

@Test
fun `Issue 2675 - operator get with lambda`() {
fun `Issue 2675 - array access expression containing a lambda expression`() {
val code =
"""
val foo1 = bar[{a -> a}]
Expand All @@ -197,8 +197,8 @@ class SpacingAroundCurlyRuleTest {

spacingAroundCurlyRuleAssertThat(code)
.hasLintViolations(
LintViolation(line = 1, col = 17, detail = "Missing spacing after \"{\"", canBeAutoCorrected = true),
LintViolation(line = 1, col = 23, detail = "Missing spacing before \"}\"", canBeAutoCorrected = true),
LintViolation(1, 17, "Missing spacing after \"{\"", canBeAutoCorrected = true),
LintViolation(1, 23, "Missing spacing before \"}\"", canBeAutoCorrected = true),
).isFormattedAs(formattedCode)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class SpacingAroundSquareBracketsRuleTest {
}

@Test
fun `Issue 2675 - operator get with lambda`() {
fun `Issue 2675 - array access expression containing a lambda expression`() {
val code =
"""
val foo = bar[ { 123 } ]
Expand All @@ -141,8 +141,8 @@ class SpacingAroundSquareBracketsRuleTest {

spacingAroundSquareBracketsRuleAssertThat(code)
.hasLintViolations(
LintViolation(line = 1, col = 15, detail = "Unexpected spacing after '['", canBeAutoCorrected = true),
LintViolation(line = 1, col = 23, detail = "Unexpected spacing before ']'", canBeAutoCorrected = true),
LintViolation(1, 15, "Unexpected spacing after '['", canBeAutoCorrected = true),
LintViolation(1, 23, "Unexpected spacing before ']'", canBeAutoCorrected = true),
).isFormattedAs(formattedCode)
}
}

0 comments on commit 43e611d

Please sign in to comment.