Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@22527 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
- Loading branch information
prokopec
committed
Jul 9, 2010
1 parent
502b49d
commit ceb4207
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
|
||
|
||
|
||
object Test { | ||
|
||
def main(args: Array[String]) { | ||
import scala.collection.immutable._ | ||
val x = TreeSet("a", "b", "c", "d") | ||
val x2 = x + "e" | ||
assert(x2.toString == "TreeSet(a, b, c, d, e)") | ||
assert(x2.toString == runtime.ScalaRunTime.stringOf(x2).trim) | ||
} | ||
|
||
} |