aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-04-04 19:05:52 -0400
committerChristopher Vogt <oss.nsp@cvogt.org>2017-04-04 19:07:39 -0400
commitfced15a610eaee443ae83be0cdb78975b1f19bbb (patch)
tree0b93fc663824a04ab360cbc61a52a3c414145fd4 /test
parent340c7eaabe3c5c416c76bccca07756f52204488a (diff)
downloadcbt-fced15a610eaee443ae83be0cdb78975b1f19bbb.tar.gz
cbt-fced15a610eaee443ae83be0cdb78975b1f19bbb.tar.bz2
cbt-fced15a610eaee443ae83be0cdb78975b1f19bbb.zip
Cleanup Scalastyle plugin
Diffstat (limited to 'test')
-rw-r--r--test/test.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test.scala b/test/test.scala
index ee44f18..74177c5 100644
--- a/test/test.scala
+++ b/test/test.scala
@@ -305,6 +305,13 @@ object Main{
}
{
+ val res = runCbt("../examples/scalastyle", Seq("scalastyle"))
+ assert(!res.exit0)
+ assert(res.err contains "Line contains a tab", res.out ++ "\n" ++ res.err)
+ assert(res.out.isEmpty, res.out ++ "\n" ++ res.err)
+ }
+
+ {
val res = runCbt("../examples/scalapb-example", Seq("run"))
assert(res.exit0)
assert(res.out contains "age: 123", res.out ++ "\n--\n" ++ res.err)