diff options
author | James Iry <jamesiry@gmail.com> | 2013-02-01 09:10:04 -0800 |
---|---|---|
committer | James Iry <jamesiry@gmail.com> | 2013-02-01 09:10:04 -0800 |
commit | d3886086c317acdaccaf0d40d69463b444947cc9 (patch) | |
tree | db3958b5d24f62fd771c6ac9b7aefd2bb5c5517d /test | |
parent | 06295f9682b3292b9fca367a559c000fcf0c782d (diff) | |
parent | 485d815dbada76f1a25c97814d48113909d9cd3a (diff) | |
download | scala-d3886086c317acdaccaf0d40d69463b444947cc9.tar.gz scala-d3886086c317acdaccaf0d40d69463b444947cc9.tar.bz2 scala-d3886086c317acdaccaf0d40d69463b444947cc9.zip |
Merge pull request #1909 from kzys/jira-6017-2.10.x
SI-6017 Scaladoc's Index should be case-sensitive
Diffstat (limited to 'test')
-rw-r--r-- | test/scaladoc/run/SI-6017.check | 1 | ||||
-rw-r--r-- | test/scaladoc/run/SI-6017.scala | 23 |
2 files changed, 24 insertions, 0 deletions
diff --git a/test/scaladoc/run/SI-6017.check b/test/scaladoc/run/SI-6017.check new file mode 100644 index 0000000000..619c56180b --- /dev/null +++ b/test/scaladoc/run/SI-6017.check @@ -0,0 +1 @@ +Done. diff --git a/test/scaladoc/run/SI-6017.scala b/test/scaladoc/run/SI-6017.scala new file mode 100644 index 0000000000..a4950e48d8 --- /dev/null +++ b/test/scaladoc/run/SI-6017.scala @@ -0,0 +1,23 @@ +import scala.tools.nsc.doc +import scala.tools.nsc.doc.model._ +import scala.tools.nsc.doc.html.page.{Index, ReferenceIndex} +import scala.tools.partest.ScaladocModelTest + +object Test extends ScaladocModelTest { + override def scaladocSettings = "" + override def code = """ + class STAR + class Star + """ + + def testModel(rootPackage: Package) { + model match { + case Some(universe) => { + val index = IndexModelFactory.makeIndex(universe) + // Because "STAR" and "Star" are different + assert(index.firstLetterIndex('s').keys.toSeq.length == 2) + } + case _ => assert(false) + } + } +} |