diff options
author | Li Haoyi <haoyi@dropbox.com> | 2014-11-16 18:04:29 -0800 |
---|---|---|
committer | Li Haoyi <haoyi@dropbox.com> | 2014-11-16 18:04:29 -0800 |
commit | 90963daf606ea1c0854132a3e8cbafd17a5a346a (patch) | |
tree | 61df16d68074d53e376aa3ad53ee4389f552b021 /scalatexApi/src/test/scala | |
parent | ba96a85378fd7fb24cf386ced21a3427112c3610 (diff) | |
download | hands-on-scala-js-90963daf606ea1c0854132a3e8cbafd17a5a346a.tar.gz hands-on-scala-js-90963daf606ea1c0854132a3e8cbafd17a5a346a.tar.bz2 hands-on-scala-js-90963daf606ea1c0854132a3e8cbafd17a5a346a.zip |
All unit tests pass, file integration tests still seem to have crappy performance
Diffstat (limited to 'scalatexApi/src/test/scala')
-rw-r--r-- | scalatexApi/src/test/scala/torimatomeru/SyntaxTest.scala | 63 |
1 files changed, 60 insertions, 3 deletions
diff --git a/scalatexApi/src/test/scala/torimatomeru/SyntaxTest.scala b/scalatexApi/src/test/scala/torimatomeru/SyntaxTest.scala index f872ec6..29c57c8 100644 --- a/scalatexApi/src/test/scala/torimatomeru/SyntaxTest.scala +++ b/scalatexApi/src/test/scala/torimatomeru/SyntaxTest.scala @@ -105,15 +105,72 @@ object SyntaxTest extends TestSuite{ |} """.stripMargin ) + * - check( + """ + |object Moo{ + | a + | .b + | + | c + |} + """.stripMargin + ) + * - check( + """ + |object Moo{ + | filename + | .asInstanceOf[Literal] + |10 + |} + """.stripMargin + ) + * - check( + """ + |object Cow{ + | ().mkString + | + | 1 + |} + """.stripMargin + ) + * - check( + """ + |object O{ + | private[this] val applyMacroFull = 1 + |} + """.stripMargin + ) + * - check( + """ + |object O{ + | private[this] def applyMacroFull(c: Context) + | (expr: c.Expr[String], + | runtimeErrors: Boolean, + | debug: Boolean) + | : c.Expr[Frag] = { + | } + |} + """.stripMargin + ) + * - check( + """ + |object O{ + | class DebugFailure extends Exception + | + | 1 + |} + """.stripMargin + ) } 'file{ * - check(io.Source.fromFile("scalatexApi/src/test/scala/torimatomeru/SyntaxTest.scala").mkString) * - check(io.Source.fromFile("scalatexApi/src/test/scala/scalatex/TestUtil.scala").mkString) -// Seems to run forever? Maybe exponential performance +// Seems to run forever? There's probably some exponential performance +// somewhere in there, but I can't see it =/ // * - check(io.Source.fromFile("scalatexApi/src/test/scala/scalatex/ParserTests.scala").mkString) - - * - check(io.Source.fromFile("scalatexApi/src/main/scala/scalatex/package.scala").mkString) +// * - check(io.Source.fromFile("scalatexApi/src/main/scala/scalatex/package.scala").mkString) } } + } |