scala-ide / scala-refactoring

A library providing automated refactoring support for Scala.
http://scala-refactoring.org/
Other
69 stars 47 forks source link

Enables including trailing line for Windows line separator #186

Closed wpopielarski closed 7 years ago

wpopielarski commented 7 years ago

Problem described in title hits refactoring of Organize Imports for Windows releases. I need advice to write a test for it.

ghprb-bot commented 7 years ago

Test PASSed.

kiritsuku commented 7 years ago

I don't think we really need a test for it. What you could do is to write a string like

val src = "class X {\r\n  def test = 0\r\n}\r\n"

and use that as input for the test instead of reading from a file.

wpopielarski commented 7 years ago

@sschaef I'm ok with no test for this piece if you are ok too :)