aboutsummaryrefslogtreecommitdiff
path: root/test/test/TestREPL.scala
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2016-10-23 16:22:00 +0200
committerGuillaume Martres <smarter@ubuntu.com>2016-11-22 01:35:06 +0100
commitbbc46b4ad9aecd0998f0fa49f349a91f1d665ca8 (patch)
treef60eb742dfe8bb67e8e353a5f0470679abb6bd8b /test/test/TestREPL.scala
parent6351c6cc8c3014fd1fbb8244e872c9e28773dad0 (diff)
downloaddotty-bbc46b4ad9aecd0998f0fa49f349a91f1d665ca8.tar.gz
dotty-bbc46b4ad9aecd0998f0fa49f349a91f1d665ca8.tar.bz2
dotty-bbc46b4ad9aecd0998f0fa49f349a91f1d665ca8.zip
Add dotty-library to classpath in dottydoc tests
Diffstat (limited to 'test/test/TestREPL.scala')
-rw-r--r--test/test/TestREPL.scala12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/test/TestREPL.scala b/test/test/TestREPL.scala
index 9867cb4ec..cccfacc41 100644
--- a/test/test/TestREPL.scala
+++ b/test/test/TestREPL.scala
@@ -20,8 +20,16 @@ class TestREPL(script: String) extends REPL {
override lazy val config = new REPL.Config {
override val output = new NewLinePrintWriter(out)
- override def context(ctx: Context) =
- ctx.fresh.setSetting(ctx.settings.color, "never")
+ override def context(ctx: Context) = {
+ val fresh = ctx.fresh
+ fresh.setSetting(ctx.settings.color, "never")
+ fresh.setSetting(
+ ctx.settings.classpath,
+ "./library/target/scala-2.11/dotty-library_2.11-0.1-SNAPSHOT.jar"
+ )
+ fresh.initialize()(fresh)
+ fresh
+ }
override def input(in: Interpreter)(implicit ctx: Context) = new InteractiveReader {
val lines = script.lines.buffered