Skip to content

Commit

Permalink
AvoidInfix: add tests for of
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Nov 23, 2023
1 parent b156f7e commit 23bf690
Showing 1 changed file with 43 additions and 2 deletions.
45 changes: 43 additions & 2 deletions scalafmt-tests/src/test/resources/rewrite/AvoidInfix2.stat
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,61 @@ lst :+ foo
// format: off
lst :+ foo
<<< default scalatest
runner.parser = source
===
behavior of "..." {
a shouldBe b
}
behaviour of "..." {
a shouldBe b
}
behavi.or of "..." {
a shouldBe b
}
>>>
behavior.of("..." {
a shouldBe b
})
behaviour.of("..." {
a shouldBe b
})
behavi.or.of("..." {
a shouldBe b
})
<<< #3699 1
rewrite.neverInfix.excludeFilters = [ "shouldBe" ]
===
behavior of "..." {
a shouldBe b
}
>>>
behavior.of("..." {
a shouldBe b
})
<<< default scalatest with appended excludeFilters
rewrite.neverInfix.excludeFilters."+" = [ "of" ]
<<< #3699 2
rewrite.neverInfix.excludeFilters = [ "of" ]
===
behavior of "..." {
a shouldBe b
}
>>>
behavior of "..." {
a.shouldBe(b)
}
<<< #3699 3
runner.parser = source
rewrite.neverInfix.excludeFilters = [ "behaviour\\.of" ]
===
behavior of "..." {
a shouldBe b
}
behaviour of "..." {
a shouldBe b
}
>>>
behavior.of("..." {
a.shouldBe(b)
})
behaviour.of("..." {
a.shouldBe(b)
})

0 comments on commit 23bf690

Please sign in to comment.