diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2016-04-07 09:58:43 +0200 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2016-04-07 09:58:43 +0200 |
commit | c7730ad9ea99ce7fa53e4cddefdd2afd9f60ce20 (patch) | |
tree | 07047a2d732406423deb561d67439be7cfa723b4 /test | |
parent | f43f520a1a6e60d4a6020af97c52dd6c43ea75cd (diff) | |
download | dotty-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.scala | 2 |
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"""") |