File tree Expand file tree Collapse file tree
core/src/test/java/com/facebook/ktfmt/cli Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -349,7 +349,7 @@ class MainTest {
349349 .run ()
350350
351351 assertThat(out .toString(UTF_8 )).doesNotContain(" hello, world" )
352- assertThat(out .toString(testCharset)).isEqualTo(" <stdin>\n " )
352+ assertThat(out .toString(testCharset)).isEqualTo(" <stdin>${ System .lineSeparator()} " )
353353 }
354354
355355 @Test
@@ -460,7 +460,7 @@ class MainTest {
460460 .run ()
461461
462462 assertThat(out .toString(UTF_8 )).doesNotContain(" hello, world" )
463- assertThat(out .toString(testCharset)).isEqualTo(" <stdin>\n " )
463+ assertThat(out .toString(testCharset)).isEqualTo(" <stdin>${ System .lineSeparator()} " )
464464 assertThat(exitCode).isEqualTo(1 )
465465 }
466466
Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ class ParsedArgsTest {
287287 assertFailsWith<FileNotFoundException > {
288288 ParsedArgs .processArgs(arrayOf(" @non-existing-file" ))
289289 }
290- assertThat(e.message).contains(" non-existing-file (No such file or directory) " )
290+ assertThat(e.message).contains(" non-existing-file" )
291291 }
292292
293293 @Test
You can’t perform that action at this time.
0 commit comments