We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2240df0 commit f1cde6dCopy full SHA for f1cde6d
compiler/test/dotty/tools/dotc/printing/SyntaxHighlightingTests.scala
@@ -1,16 +1,16 @@
1
package dotty.tools.dotc.printing
2
3
+import dotty.tools.DottyTest
4
import org.junit.Assert._
5
import org.junit.Test
6
7
/** Adapted from Ammonite HighlightTests
8
*/
-class SyntaxHighlightingTests {
9
+class SyntaxHighlightingTests extends DottyTest {
10
import SyntaxHighlighting._
11
12
private def test(source: String, expected: String): Unit = {
- val highlighted = SyntaxHighlighting.apply(source)
13
- .mkString
+ val highlighted = SyntaxHighlighting.highlight(source)(ctx)
14
.replace(NoColor, ">")
15
.replace(CommentColor, "<C|")
16
.replace(KeywordColor, "<K|")
0 commit comments