diff options
author | Alexander Clare <alexander.clare@gmail.com> | 2012-07-16 13:35:43 -0500 |
---|---|---|
committer | Alexander Clare <alexander.clare@gmail.com> | 2012-07-16 14:36:19 -0500 |
commit | 41869c39ba68ef574595533777d2a99fcabdbdc3 (patch) | |
tree | 862185c349c54dc1e96e8cfb59b96ac52ac3515b /test | |
parent | ab0e09bb44567a19690529c03cb388295ce5d338 (diff) | |
download | scala-41869c39ba68ef574595533777d2a99fcabdbdc3.tar.gz scala-41869c39ba68ef574595533777d2a99fcabdbdc3.tar.bz2 scala-41869c39ba68ef574595533777d2a99fcabdbdc3.zip |
Changes suggested by @retronym and @jsuereth
Change return type to case classes, branch between functions depending
on IndexedSeq instead of IndexedSeqLike, and alter tests accordingly.
Clean up doc comments and reflect changes in them.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/search.check | 12 | ||||
-rw-r--r-- | test/files/run/search.scala | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/test/files/run/search.check b/test/files/run/search.check index 3dc3c9d369..a885696509 100644 --- a/test/files/run/search.check +++ b/test/files/run/search.check @@ -1,6 +1,6 @@ -Right(2) -Right(4) -Left(9) -Right(2) -Right(4) -Left(9) +Found(2) +Found(4) +InsertionPoint(9) +Found(2) +Found(4) +InsertionPoint(9) diff --git a/test/files/run/search.scala b/test/files/run/search.scala index 1e57fa2bf1..ed7fed54a7 100644 --- a/test/files/run/search.scala +++ b/test/files/run/search.scala @@ -1,6 +1,6 @@ object Test extends App { import scala.collection.{LinearSeq, IndexedSeq} - import scala.collection.Searching._ + import scala.collection.Searching.search val ls = LinearSeq(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 13) println(ls.search(3)) |