summaryrefslogtreecommitdiff
path: root/test/junit/scala/tools/nsc/doc/html/HtmlDocletTest.scala
blob: d17856eb544eaab7c0c80e0a69ea1acc47c5715e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package scala.tools.nsc.doc.html

import org.junit.Test
import org.junit.Assert._
import org.junit.runner.RunWith
import org.junit.runners.JUnit4

import scala.tools.testing.AssertUtil._

@RunWith(classOf[JUnit4])
class HtmlDocletTest {
  @Test
  def testSyntaxHighlightingUnicode() {
    val in = "unicode: …"

    val out = SyntaxHigh(in).toString

    // SI-9038, this failed with
    // "unicode: …" != "unicode: ¬タᆭ"
    assertEquals(in, out)
  }
}