diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-11-07 02:53:42 -0500 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-11-07 09:31:13 -0500 |
commit | 3949713f84b3a811646ae678e90bab257b4801a0 (patch) | |
tree | aeb25097d3e94157a89dcf97b9c2c37b8d244a86 /libraries/eval | |
parent | 7cda6c28d59bf226c3bef767788ef395e72b8165 (diff) | |
download | cbt-3949713f84b3a811646ae678e90bab257b4801a0.tar.gz cbt-3949713f84b3a811646ae678e90bab257b4801a0.tar.bz2 cbt-3949713f84b3a811646ae678e90bab257b4801a0.zip |
Add test for overriding Eval classloader
Diffstat (limited to 'libraries/eval')
-rw-r--r-- | libraries/eval/test/EvalTest.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libraries/eval/test/EvalTest.scala b/libraries/eval/test/EvalTest.scala index b2d53bc..c9d33b3 100644 --- a/libraries/eval/test/EvalTest.scala +++ b/libraries/eval/test/EvalTest.scala @@ -252,6 +252,13 @@ class EvalTest extends WordSpec { eval.check("new A()") assert(eval.errors.isEmpty) } + + "eval with overriden classloader" in { + val eval = new Eval{ + override def classLoader = this.getClass.getClassLoader + } + assert(eval.apply[Int]("1 + 1") == 2) + } } } } |