Skip to content

Commit f1cde6d

Browse files
committed
Switch highlighting tests to new highlighter implementation
1 parent 2240df0 commit f1cde6d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/test/dotty/tools/dotc/printing/SyntaxHighlightingTests.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
package dotty.tools.dotc.printing
22

3+
import dotty.tools.DottyTest
34
import org.junit.Assert._
45
import org.junit.Test
56

67
/** Adapted from Ammonite HighlightTests
78
*/
8-
class SyntaxHighlightingTests {
9+
class SyntaxHighlightingTests extends DottyTest {
910
import SyntaxHighlighting._
1011

1112
private def test(source: String, expected: String): Unit = {
12-
val highlighted = SyntaxHighlighting.apply(source)
13-
.mkString
13+
val highlighted = SyntaxHighlighting.highlight(source)(ctx)
1414
.replace(NoColor, ">")
1515
.replace(CommentColor, "<C|")
1616
.replace(KeywordColor, "<K|")

0 commit comments

Comments
 (0)