diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2017-03-16 16:37:43 +0100 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2017-03-29 10:33:23 +0200 |
commit | 101d124acda3cc8edf7ea3c55db8b80fb1e1cd05 (patch) | |
tree | af036b4cfd4830d0433656824a5eab3dd41f6112 /compiler/test/dotty/tools/dotc/CompilerTest.scala | |
parent | 620daf888042d63bb118fb0907e9e11e6a2a5b00 (diff) | |
download | dotty-101d124acda3cc8edf7ea3c55db8b80fb1e1cd05.tar.gz dotty-101d124acda3cc8edf7ea3c55db8b80fb1e1cd05.tar.bz2 dotty-101d124acda3cc8edf7ea3c55db8b80fb1e1cd05.zip |
Move REPL diff tests out of `tests.scala`
Diffstat (limited to 'compiler/test/dotty/tools/dotc/CompilerTest.scala')
-rw-r--r-- | compiler/test/dotty/tools/dotc/CompilerTest.scala | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/compiler/test/dotty/tools/dotc/CompilerTest.scala b/compiler/test/dotty/tools/dotc/CompilerTest.scala index db12994f4..f35f9f919 100644 --- a/compiler/test/dotty/tools/dotc/CompilerTest.scala +++ b/compiler/test/dotty/tools/dotc/CompilerTest.scala @@ -237,23 +237,6 @@ abstract class CompilerTest { } } - def replFile(prefix: String, fileName: String): Unit = { - val path = s"$prefix$fileName" - val f = new PlainFile(path) - val repl = new TestREPL(new String(f.toCharArray)) - repl.process(Array[String]()) - repl.check() - } - - def replFiles(path: String): Unit = { - val dir = Directory(path) - val fileNames = dir.files.toArray.map(_.jfile.getName).filter(_ endsWith ".check") - for (name <- fileNames) { - log(s"testing $path$name") - replFile(path, name) - } - } - // ========== HELPERS ============= private def expectedErrors(filePaths: List[String]): List[ErrorsInFile] = if (filePaths.exists(isNegTest(_))) filePaths.map(getErrors(_)) else Nil |