summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorVlad Ureche <vlad.ureche@epfl.ch>2015-03-28 07:11:06 +0100
committerVlad Ureche <vlad.ureche@epfl.ch>2015-03-28 07:11:06 +0100
commitc505b6c4522166dde936f2b6ba6d42c15874ae41 (patch)
tree06bb6dbf7403a62d7425b1c44b284cea39876bd5 /test
parent6372df754ca8943a5fea3455936dbb6c1723d78e (diff)
parent6e6632e9739364e6daecba9efd6491a5766743f2 (diff)
downloadscala-c505b6c4522166dde936f2b6ba6d42c15874ae41.tar.gz
scala-c505b6c4522166dde936f2b6ba6d42c15874ae41.tar.bz2
scala-c505b6c4522166dde936f2b6ba6d42c15874ae41.zip
Merge pull request #4410 from gourlaysama/wip/t9038-encoding-issues
SI-9038 fix scaladoc syntax highlightning to leave unicode alone
Diffstat (limited to 'test')
-rw-r--r--test/junit/scala/tools/nsc/doc/html/HtmlDocletTest.scala22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/junit/scala/tools/nsc/doc/html/HtmlDocletTest.scala b/test/junit/scala/tools/nsc/doc/html/HtmlDocletTest.scala
new file mode 100644
index 0000000000..13a955b55d
--- /dev/null
+++ b/test/junit/scala/tools/nsc/doc/html/HtmlDocletTest.scala
@@ -0,0 +1,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 testSyntaxHighlightningUnicode() {
+ val in = "unicode: …"
+
+ val out = SyntaxHigh(in).toString
+
+ // SI-9038, this failed with
+ // "unicode: …" != "unicode: ¬タᆭ"
+ assertEquals(in, out)
+ }
+}