diff options
author | Li Haoyi <haoyi@dropbox.com> | 2014-11-17 01:18:55 -0800 |
---|---|---|
committer | Li Haoyi <haoyi@dropbox.com> | 2014-11-17 01:18:55 -0800 |
commit | 8c2ebc82047f0af1807dadd78562625e74478594 (patch) | |
tree | 82f7237b1a216246be90040b3d2edcd0c83ea92e /scalatexApi/src/test/scala/scalaparser | |
parent | 4fda6b8ad990762dc63fce6b56b9c97fb5d169d8 (diff) | |
download | hands-on-scala-js-8c2ebc82047f0af1807dadd78562625e74478594.tar.gz hands-on-scala-js-8c2ebc82047f0af1807dadd78562625e74478594.tar.bz2 hands-on-scala-js-8c2ebc82047f0af1807dadd78562625e74478594.zip |
Operators like `=:=` work
Diffstat (limited to 'scalatexApi/src/test/scala/scalaparser')
-rw-r--r-- | scalatexApi/src/test/scala/scalaparser/SyntaxTest.scala | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/scalatexApi/src/test/scala/scalaparser/SyntaxTest.scala b/scalatexApi/src/test/scala/scalaparser/SyntaxTest.scala index a7ceead..607bb55 100644 --- a/scalatexApi/src/test/scala/scalaparser/SyntaxTest.scala +++ b/scalatexApi/src/test/scala/scalaparser/SyntaxTest.scala @@ -268,7 +268,41 @@ object SyntaxTest extends TestSuite{ |} """.stripMargin ) - + * - check( + """ + |object L{ + | x match{ + | case y.Y(z) => z + | } + |} + """.stripMargin + ) + * - check( + """object K{ + | val a: B { + | val c: D + | } + | + | 1 + |} + """.stripMargin + ) + * - check( + """ + |object LOLS{ + | def run() {} + | + | def apply() {} + |} + """.stripMargin + ) + * - check( + """ + |object O{ + | a =:= b.c + |} + """.stripMargin + ) } def checkFile(path: String) = check(io.Source.fromFile(path).mkString) 'file{ |