Skip to content

Commit

Permalink
Close issue #SI-4488
Browse files Browse the repository at this point in the history
The issue is closed as won't fix, but there are a few test cases
with respect to the model relevant to the issue. Also, correct
some typos.
  • Loading branch information
manojo committed Mar 24, 2012
1 parent c0e9e75 commit 1c0bef8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/library/scala/collection/GenTraversableOnce.scala
Expand Up @@ -156,7 +156,7 @@ trait GenTraversableOnce[+A] extends Any {
* @return the result of inserting `op` between consecutive elements of this $coll,
* going left to right with the start value `z` on the left:
* {{{
* op(...op(op(z, x1), x2), ..., xn)
* op(...op(op(z, x_1), x_2), ..., x_n)
* }}}
* where `x,,1,,, ..., x,,n,,` are the elements of this $coll.
*/
Expand Down Expand Up @@ -191,7 +191,7 @@ trait GenTraversableOnce[+A] extends Any {
* @return the result of inserting `op` between consecutive elements of this $coll,
* going right to left with the start value `z` on the right:
* {{{
* op(x1, op(x2, ... op(xn, z)...))
* op(x_1, op(x_2, ... op(x_n, z)...))
* }}}
* where `x,,1,,, ..., x,,n,,` are the elements of this $coll.
*/
Expand All @@ -209,7 +209,7 @@ trait GenTraversableOnce[+A] extends Any {
* @return the result of inserting `op` between consecutive elements of this $coll,
* going left to right with the start value `z` on the left:
* {{{
* op(...op(z, x1), x2, ..., xn)
* op(...op(z, x_1), x_2, ..., x_n)
* }}}
* where `x,,1,,, ..., x,,n,,` are the elements of this $coll.
*/
Expand All @@ -226,7 +226,7 @@ trait GenTraversableOnce[+A] extends Any {
* @return the result of inserting `op` between consecutive elements of this $coll,
* going right to left with the start value `z` on the right:
* {{{
* op(x1, op(x2, ... op(xn, z)...))
* op(x_1, op(x_2, ... op(x_n, z)...))
* }}}
* where `x,,1,,, ..., x,,n,,` are the elements of this $coll.
*/
Expand Down Expand Up @@ -271,7 +271,7 @@ trait GenTraversableOnce[+A] extends Any {
* @return the result of inserting `op` between consecutive elements of this $coll,
* going right to left:
* {{{
* op(x,,1,,, op(x,,2,,, ..., op(x,,n-1,,, x,,n,,)...))
* op(x_1, op(x_2, ..., op(x_{n-1}, x_n)...))
* }}}
* where `x,,1,,, ..., x,,n,,` are the elements of this $coll.
* @throws `UnsupportedOperationException` if this $coll is empty.
Expand Down
2 changes: 1 addition & 1 deletion src/library/scala/testing/Show.scala
Expand Up @@ -11,7 +11,7 @@
package scala.testing

/** Classes inheriting trait `Show` can test their member methods using the
* notattion `meth(arg,,1,,, ..., arg,,n,,)`, where `meth` is the name of
* notation `meth(arg,,1,,, ..., arg,,n,,)`, where `meth` is the name of
* the method and `arg,,1,,,...,arg,,n,,` are the arguments.
*
* The only difference to a normal method call is the leading quote
Expand Down
7 changes: 7 additions & 0 deletions test/scaladoc/scala/model/CommentFactoryTest.scala
Expand Up @@ -83,6 +83,13 @@ object Test extends Properties("CommentFactory") {
Chain(List(Text("hello "), Superscript(Text("world"))))
)

property("Trac #4361 - ,,...,,") = parse(
"""
/**
* hello ,,world,, */""",
Chain(List(Text("hello "), Subscript(Text("world"))))
)

property("Trac #4361 - single ^ symbol") = parse(
"""
/**
Expand Down

0 comments on commit 1c0bef8

Please sign in to comment.