diff options
author | Jeremy Cloud <jeremycloud@twitter.com> | 2011-10-06 16:50:38 -0400 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-11-07 02:08:38 -0500 |
commit | 826033765c3c56b1d0244f973147f7853e97c268 (patch) | |
tree | b44fbda13478f126d26dbecb203e8411a55ed961 /libraries/eval/test/EvalTest.scala | |
parent | ec5d48ac3db80cf955535729d14fa36d188be130 (diff) | |
download | cbt-826033765c3c56b1d0244f973147f7853e97c268.tar.gz cbt-826033765c3c56b1d0244f973147f7853e97c268.tar.bz2 cbt-826033765c3c56b1d0244f973147f7853e97c268.zip |
[split] - recursively process includes - allow additional include path to be specified via system property
Diffstat (limited to 'libraries/eval/test/EvalTest.scala')
-rw-r--r-- | libraries/eval/test/EvalTest.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libraries/eval/test/EvalTest.scala b/libraries/eval/test/EvalTest.scala index 2fa7d44..40d15a7 100644 --- a/libraries/eval/test/EvalTest.scala +++ b/libraries/eval/test/EvalTest.scala @@ -85,6 +85,14 @@ object EvalSpec extends Specification { derived.toString mustEqual "hello, joe" } + "recursive #include" in { + val derived = Eval[() => String]( + TempFile.fromResourcePath("/Base.scala"), + TempFile.fromResourcePath("/IncludeInclude.scala")) + derived() mustEqual "hello" + derived.toString mustEqual "hello, joe; hello, joe" + } + "toSource returns post-processed code" in { val derived = Eval.toSource(TempFile.fromResourcePath("/DerivedWithInclude.scala")) derived must include("hello, joe") |