From 831bffda674f48af1d5ea4cd8bc54014fa7b1e88 Mon Sep 17 00:00:00 2001 From: Kato Kazuyoshi Date: Tue, 8 Jan 2013 01:36:55 +0900 Subject: SI-6017 Scaladoc's Index should be case-sensitive --- test/scaladoc/run/SI-6017.scala | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 test/scaladoc/run/SI-6017.scala (limited to 'test/scaladoc/run') diff --git a/test/scaladoc/run/SI-6017.scala b/test/scaladoc/run/SI-6017.scala new file mode 100644 index 0000000000..8ab64d6aba --- /dev/null +++ b/test/scaladoc/run/SI-6017.scala @@ -0,0 +1,27 @@ +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) + + val indexPage = new Index(universe, index) + // Because both are starting with "s" + assert(indexPage.letters.length == 1) + } + case _ => assert(false) + } + } +} -- cgit v1.2.3