diff options
Diffstat (limited to 'test/test.scala')
-rw-r--r-- | test/test.scala | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/test/test.scala b/test/test.scala index 685d7ce..5b4a4af 100644 --- a/test/test.scala +++ b/test/test.scala @@ -212,10 +212,10 @@ object Main{ compile("../examples/uber-jar-example") { - val res = task("docJar","library-test") - assert( res.out endsWith "library-test_2.11-0.1-javadoc.jar" ) - assert( res.err startsWith "model contains" ) - assert( res.err endsWith "documentable templates" ) + val res = task("docJar","simple-fixed-cbt") + assert( res.out endsWith "simple-fixed-cbt_2.11-0.1-javadoc.jar", res.out ) + assert( res.err contains "model contains", res.err ) + assert( res.err endsWith "documentable templates", res.err ) } { @@ -225,6 +225,12 @@ object Main{ } { + val res = runCbt("../examples/build-info-example", Seq("run")) + assert(res.exit0) + assert(res.out contains "version: 0.1", res.out) + } + + { val res = runCbt("forgot-extend", Seq("run")) assert(!res.exit0) assert(res.err contains "Build cannot be cast to cbt.BuildInterface", res.err) |