aboutsummaryrefslogtreecommitdiff
path: root/test/dotc/tests.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-11-18 19:27:18 +0100
committerMartin Odersky <odersky@gmail.com>2013-11-18 19:27:36 +0100
commitacc9d750d1776d8d1c864fb3ddaadbaec34d286e (patch)
treec5129664583164aef17f0c42a634ae9e6dbf8e62 /test/dotc/tests.scala
parentb6d7b28403c34f61c5317c37acce1b4118a4181c (diff)
downloaddotty-acc9d750d1776d8d1c864fb3ddaadbaec34d286e.tar.gz
dotty-acc9d750d1776d8d1c864fb3ddaadbaec34d286e.tar.bz2
dotty-acc9d750d1776d8d1c864fb3ddaadbaec34d286e.zip
Added unit testing support
Diffstat (limited to 'test/dotc/tests.scala')
-rw-r--r--test/dotc/tests.scala27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala
new file mode 100644
index 000000000..b830471e5
--- /dev/null
+++ b/test/dotc/tests.scala
@@ -0,0 +1,27 @@
+package dotc
+
+import org.junit.Test
+import test._
+
+class tests extends CompilerTest {
+
+ override val defaultOptions =
+ List("-verbose", "-Ylog:frontend", "-explaintypes", "-Yshow-suppressed-errors", "-pagewidth", "160")
+
+ val posDir = "/Users/odersky/workspace/dotty/tests/pos/"
+ val negDir = "/Users/odersky/workspace/dotty/tests/neg/"
+
+
+ @Test def pos_Coder() = compileFile(posDir, "Coder")
+ @Test def pos_blockescapes() = compileFile(posDir, "blockescapes")
+ @Test def pos_collections() = compileFile(posDir, "collections")
+ @Test def pos_functions1() = compileFile(posDir, "functions1")
+ @Test def pos_implicits1() = compileFile(posDir, "implicits1")
+ @Test def pos_inferred() = compileFile(posDir, "inferred")
+ @Test def pos_Patterns() = compileFile(posDir, "Patterns")
+ @Test def pos_selftypes() = compileFile(posDir, "selftypes")
+ @Test def pos_varargs() = compileFile(posDir, "varargs")
+
+ @Test def neg_blockescapes() = compileFile(negDir, "blockescapesNeg", xerrors = 2)
+
+} \ No newline at end of file