diff options
author | Li Haoyi <haoyi@dropbox.com> | 2014-11-17 00:03:58 -0800 |
---|---|---|
committer | Li Haoyi <haoyi@dropbox.com> | 2014-11-17 00:03:58 -0800 |
commit | 4fda6b8ad990762dc63fce6b56b9c97fb5d169d8 (patch) | |
tree | 5ca148bf2e4ead76dce33b55047c8a5f5cdd760c /scalatexApi/src/test/scala/scalaparser/SyntaxTest.scala | |
parent | f9f749398874120e93eb5bc15eaffbe21462b398 (diff) | |
download | hands-on-scala-js-4fda6b8ad990762dc63fce6b56b9c97fb5d169d8.tar.gz hands-on-scala-js-4fda6b8ad990762dc63fce6b56b9c97fb5d169d8.tar.bz2 hands-on-scala-js-4fda6b8ad990762dc63fce6b56b9c97fb5d169d8.zip |
Made line comments (//) not eat the newline so other things can use it
Diffstat (limited to 'scalatexApi/src/test/scala/scalaparser/SyntaxTest.scala')
-rw-r--r-- | scalatexApi/src/test/scala/scalaparser/SyntaxTest.scala | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/scalatexApi/src/test/scala/scalaparser/SyntaxTest.scala b/scalatexApi/src/test/scala/scalaparser/SyntaxTest.scala index 4e69bc2..a7ceead 100644 --- a/scalatexApi/src/test/scala/scalaparser/SyntaxTest.scala +++ b/scalatexApi/src/test/scala/scalaparser/SyntaxTest.scala @@ -261,18 +261,10 @@ object SyntaxTest extends TestSuite{ ) * - check( """ - |object SyntaxTest extends TestSuite{ - | def check[T](input: String) = { - | new ScalaSyntax(input).CompilationUnit.run() match{ - | case Failure(f: ParseError) => - | println(f.position) - | println(f.formatExpectedAsString) - | println(f.formatTraces) - | throw new Exception(f.position + "\t" + f.formatTraces) - | case Success(parsed) => - | assert(parsed == input) - | } - | } + |object Foo{ + | val a = d // g + | val b = e // h + | val c = f |} """.stripMargin ) |