diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-09-14 14:22:42 +0100 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-09-14 14:22:42 +0100 |
commit | 1e529cab0dc04bebf924934d6680c605fb78a175 (patch) | |
tree | 141900693a428be1bbab775a613205a7dfd67f78 | |
parent | 3eae7ef24066cc699bddbd6a6c593929948bdb2f (diff) | |
download | cbt-1e529cab0dc04bebf924934d6680c605fb78a175.tar.gz cbt-1e529cab0dc04bebf924934d6680c605fb78a175.tar.bz2 cbt-1e529cab0dc04bebf924934d6680c605fb78a175.zip |
make tests check for wart-remover example expected compile failure (not success)
-rw-r--r-- | test/test.scala | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/test.scala b/test/test.scala index 7964142..4f0afcd 100644 --- a/test/test.scala +++ b/test/test.scala @@ -195,7 +195,6 @@ object Main{ compile("../examples/multi-project-example") task("fastOptJS","../examples/scalajs-react-example/js") task("fullOptJS","../examples/scalajs-react-example/js") - compile("../examples/wartremover-example") compile("../examples/uber-jar-example") { @@ -222,6 +221,13 @@ object Main{ assert(res.err contains "You need to define a class Build in build.scala in", res.err) } + { + val res = runCbt("../examples/wartremover-example", Seq("compile")) + assert(!res.exit0) + assert(res.err.contains("var is disabled"), res.out) + assert(res.err.contains("null is disabled"), res.out) + } + System.err.println(" DONE!") System.err.println( successes.toString ++ " succeeded, "++ failures.toString ++ " failed" ) if(failures > 0) System.exit(1) else System.exit(0) |