diff options
Diffstat (limited to 'scalatexApi/src/test/scala/scalaparser/SyntaxTest.scala')
-rw-r--r-- | scalatexApi/src/test/scala/scalaparser/SyntaxTest.scala | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/scalatexApi/src/test/scala/scalaparser/SyntaxTest.scala b/scalatexApi/src/test/scala/scalaparser/SyntaxTest.scala index 607bb55..1f3bf02 100644 --- a/scalatexApi/src/test/scala/scalaparser/SyntaxTest.scala +++ b/scalatexApi/src/test/scala/scalaparser/SyntaxTest.scala @@ -13,12 +13,13 @@ object SyntaxTest extends TestSuite{ case Failure(f: ParseError) => println(f.position) println(f.formatExpectedAsString) - println(f.formatTraces) +// println(f.formatTraces) throw new Exception(f.position + "\t" + f.formatTraces) case Success(parsed) => assert(parsed == input) } } + println("running") def tests = TestSuite{ 'unit { * - check( @@ -303,6 +304,24 @@ object SyntaxTest extends TestSuite{ |} """.stripMargin ) + * - check( + """ + |object K{ + | a( + | 1: _* + | ) + |} + """.stripMargin + ) + * - check( + """ + |object P{ + | tree match { + | case stats :+ expr => 1 + | } + |} + """.stripMargin + ) } def checkFile(path: String) = check(io.Source.fromFile(path).mkString) 'file{ |