summaryrefslogtreecommitdiff
path: root/scalatexApi/src/test/scala/scalatex/ParserTests.scala
diff options
context:
space:
mode:
authorLi Haoyi <haoyi@dropbox.com>2014-11-03 01:25:13 -0800
committerLi Haoyi <haoyi@dropbox.com>2014-11-03 01:25:13 -0800
commit974c6e4f232ee9d47187898966e0887a119a0aba (patch)
tree2899e8e40f89b2cf332e981b441eff0a52b22f49 /scalatexApi/src/test/scala/scalatex/ParserTests.scala
parent52373d64b86ed514998ff5e6a128bf26b77e9f2e (diff)
downloadhands-on-scala-js-974c6e4f232ee9d47187898966e0887a119a0aba.tar.gz
hands-on-scala-js-974c6e4f232ee9d47187898966e0887a119a0aba.tar.bz2
hands-on-scala-js-974c6e4f232ee9d47187898966e0887a119a0aba.zip
All tests pass, including first rudimentary indentation test
Diffstat (limited to 'scalatexApi/src/test/scala/scalatex/ParserTests.scala')
-rw-r--r--scalatexApi/src/test/scala/scalatex/ParserTests.scala18
1 files changed, 15 insertions, 3 deletions
diff --git a/scalatexApi/src/test/scala/scalatex/ParserTests.scala b/scalatexApi/src/test/scala/scalatex/ParserTests.scala
index 34c6fdb..0649357 100644
--- a/scalatexApi/src/test/scala/scalatex/ParserTests.scala
+++ b/scalatexApi/src/test/scala/scalatex/ParserTests.scala
@@ -53,14 +53,26 @@ object ParserTests extends utest.TestSuite{
}
'Body{
- val str =
+ * - check(
"""
|@omg
| @wtf
| @bbq
| @lol
- """.stripMargin
- new ScalatexParser(str).Body.run()
+ """.stripMargin,
+ _.Body.run(),
+ Block(Seq(
+ Chain(Code("omg"),Seq(Block(Seq(
+ Chain(Code("wtf"),Seq(Block(Seq(
+ Chain(Code("bbq"),Seq(Block(Seq(
+ Chain(Code("lol"),Seq(Block(Seq(
+ )))),
+ Ast.Block.Text("\n ")
+ ))))
+ ))))
+ ))))
+ ))
+ )
}
}