aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2016-04-07 09:58:43 +0200
committerFelix Mulder <felix.mulder@gmail.com>2016-04-07 09:58:43 +0200
commitc7730ad9ea99ce7fa53e4cddefdd2afd9f60ce20 (patch)
tree07047a2d732406423deb561d67439be7cfa723b4 /test
parentf43f520a1a6e60d4a6020af97c52dd6c43ea75cd (diff)
downloaddotty-c7730ad9ea99ce7fa53e4cddefdd2afd9f60ce20.tar.gz
dotty-c7730ad9ea99ce7fa53e4cddefdd2afd9f60ce20.tar.bz2
dotty-c7730ad9ea99ce7fa53e4cddefdd2afd9f60ce20.zip
Add commandline argument `-Ykeep-comments` to remove hardcoding
Diffstat (limited to 'test')
-rw-r--r--test/test/DottyDocTest.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test/DottyDocTest.scala b/test/test/DottyDocTest.scala
index eed5d6cd0..34269ec64 100644
--- a/test/test/DottyDocTest.scala
+++ b/test/test/DottyDocTest.scala
@@ -4,6 +4,8 @@ import dotty.tools.dotc.ast.Trees._
import dotty.tools.dotc.core.Contexts.Context
trait DottyDocTest extends DottyTest {
+ ctx = ctx.fresh.setSetting(ctx.settings.YkeepComments, true)
+
def checkDocString(actual: Option[String], expected: String): Unit = actual match {
case Some(str) =>
assert(str == expected, s"""Docstring: "$str" didn't match expected "$expected"""")