diff options
author | Li Haoyi <haoyi@dropbox.com> | 2014-11-28 09:51:52 -0800 |
---|---|---|
committer | Li Haoyi <haoyi@dropbox.com> | 2014-11-28 09:51:52 -0800 |
commit | e65a5dde462be15d4fbb5db8e3be2d7365c99f08 (patch) | |
tree | 4a05070b848fa78dd4c50ebe448963359076d1ca /scalaParser/src/test/scala/scalaParser/SyntaxTest.scala | |
parent | 5809f06098535636ada8759f2f9db3e2aadc95ef (diff) | |
download | hands-on-scala-js-e65a5dde462be15d4fbb5db8e3be2d7365c99f08.tar.gz hands-on-scala-js-e65a5dde462be15d4fbb5db8e3be2d7365c99f08.tar.bz2 hands-on-scala-js-e65a5dde462be15d4fbb5db8e3be2d7365c99f08.zip |
Goes all the way to
scala / test / files / pos / dotless-targs.scala
Diffstat (limited to 'scalaParser/src/test/scala/scalaParser/SyntaxTest.scala')
-rw-r--r-- | scalaParser/src/test/scala/scalaParser/SyntaxTest.scala | 36 |
1 files changed, 34 insertions, 2 deletions
diff --git a/scalaParser/src/test/scala/scalaParser/SyntaxTest.scala b/scalaParser/src/test/scala/scalaParser/SyntaxTest.scala index 569c982..8a4affb 100644 --- a/scalaParser/src/test/scala/scalaParser/SyntaxTest.scala +++ b/scalaParser/src/test/scala/scalaParser/SyntaxTest.scala @@ -698,6 +698,32 @@ object SyntaxTest extends TestSuite{ """import java.util.concurrent.TimeUnit.{ NANOSECONDS => NANOS, MILLISECONDS ⇒ MILLIS } """.stripMargin ) + * - check( + """class FunFinder{ + | val targetName = s"$name${ if (isModule) "$" else "" }" + |} + """.stripMargin + ) + * - check( + """class AkkaException{ + | for (i ← 0 until trace.length) + | () + |} + """.stripMargin + ) + * - check( + """class FiniteDuration{ + | 1000. + |} + """.stripMargin + ) + * - check( + """object Test4 { + | type T = F @field + | @BeanProperty val x = 1 + |} + """.stripMargin + ) } 'neg{ @@ -776,14 +802,20 @@ object SyntaxTest extends TestSuite{ val (dirs, files) = s.listFiles().toIterator.partition(_.isDirectory) files.map(_.getPath) ++ dirs.flatMap(listFiles) } + // Things that we won't bother parsing, mainly because they use XML literals val blacklist = Seq( "dbuild-meta-json-gen.scala", - "genprod.scala" + "genprod.scala", + "doc/html/HtmlPage.scala", + "scala/src/scaladoc/scala/tools/nsc/doc/html", + "jvm/interpreter.scala", + "disabled", // don't bother parsing disabled tests + "neg" // or neg tests ) for{ f <- listFiles(root) if f.endsWith(".scala") - if !blacklist.exists(f.endsWith) + if !blacklist.exists(f.contains) }{ println("CHECKING " + f) checkFile(f) |