Skip to content

Commit 0772585

Browse files
committedSep 14, 2020
Add clarifying test name and comment
1 parent 22e76e8 commit 0772585

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎compiler/test/dotty/tools/dotc/SettingsTests.scala

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ class SettingsTests {
2929
assertTrue(Files.exists(out))
3030
}
3131

32-
@Test def t8124: Unit =
32+
@Test def `t8124 Don't crash on missing argument`: Unit =
3333
val source = Paths.get("tests/pos/Foo.scala").normalize
3434
val outputDir = Paths.get("out/testSettings").normalize
35-
if Files.notExists(outputDir)
36-
Files.createDirectory(outputDir)
35+
if Files.notExists(outputDir) then Files.createDirectory(outputDir)
36+
// -encoding takes an arg!
3737
val options = Array("-encoding", "-d", outputDir.toString, source.toString)
3838
val reporter = Main.process(options, reporter = StoreReporter())
3939
assertEquals(1, reporter.errorCount)

0 commit comments

Comments
 (0)