summaryrefslogtreecommitdiff
path: root/test/files/run/bitsets.scala
Commit message (Collapse)AuthorAgeFilesLines
* SI-7003 Partest redirects stderr to log fileSom Snytt2013-05-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some scalac output is on stderr, and it's useful to see that in the log file, especially for debugging. Adds a line filter for logs, specified as "filter: pattern" in the test source. Backslashes are made forward only when detected as paths. Test alignments: Deprecations which do not pertain to the system under test are corrected in the obvious way. When testing deprecated API, suppress warnings by deprecating the Test object. Check files are updated with useful true warnings, instead of running under -nowarn. Language feature imports as required, instead of running under -language. Language feature not required, such as casual use of postfix. Heed useful warning. Ignore broken warnings. (Rarely, -nowarn.) Inliner warnings pop up under -optimise only, so for now, just filter them out where they occur. Debug output from the test required an update.
* Disabled failing bitset test.Paul Phillips2013-04-231-1/+6
| | | | | | | It's a couple orders of magnitude out of whack when a test demands a gigabyte of memory to pass. We might need to start collecting per-test stats to avoid this kind of thing in the future. It's a huge waste of time.
* SI-7080 improve boundary value checking for BitSetHeejong Lee2013-04-071-0/+14
| | | | | | | | | | | | | | | | When BitSet accepts a very large integer such as Int.MaxValue, integer overflow possibly occurs in the calculation of boundary value "nwords * WordLength". This faulty boundary condition causes empty-iterator problem like following: scala> import collection.mutable.BitSet import collection.mutable.BitSet scala> val x = BitSet(Int.MaxValue) x: scala.collection.mutable.BitSet = BitSet() scala> x.iterator res0: Iterator[Int] = empty iterator
* SI-7102 Specialize isEmpty for bitsetsEugene Vigdorchik2013-03-211-0/+13
| | | | | | | | | | | | Currently bitsets use default isEmpty implementation inherited from Set, which tests for "size == 0". Calculating the size of a word in a bitmap requires summing through all bits set, whereas testing for emptyness needs only one comparison with zero. This commit overrides the default implementation with the specialized one looking for a non-zero word in this bitmap.
* SI-5513: add inplace set-theoretic operations for mutable bitsets.Eugene Vigdorchik2013-03-111-0/+22
|
* SI-6811 Remove deprecated elements in scala.collectionSimon Ochsenreither2013-01-171-2/+2
|
* Improved BitSet implementationsStefan Zeiger2011-12-011-0/+85
| | | | | | | | | | | | | | - Mutable and immutable BitSets now extend SortedSet, using a fixed Ordering.Int and an efficient bit mask based rangeImpl() - fromArray methods in both implementations are deprecated in favor of new fromBitMask and fromBitMaskNoCopy methods - New toBitMask method for converting bit sets back to Array[Long] bit masks - immutable.BitSet uses a more efficient Builder, based on mutable.BitSet (closes SI-4647) - Delete scala.tools.nsc.util.BitSet (not used anywhere) Review by @odersky
* Renamed Application to App.Martin Odersky2011-02-211-1/+1
|
* [no content change] Fixed all SVN properties: m...Gilles Dubochet2009-09-241-1/+0
| | | | | | | | [no content change] Fixed all SVN properties: mimes, EOL, executable. Id expansion is consistently enabled for Scala/Java/C# sources in 'src/' and consistently disabled and removed from everywhere else: there should not be any dead Id tags anymore.
* In "Iterable" and in all its subclasses, "itera...Gilles Dubochet2009-05-271-7/+7
| | | | | | In "Iterable" and in all its subclasses, "iterator" replaces "elements" (and assorted changes).
* Organized disabled directory so it works with p...Paul Phillips2009-05-091-0/+78
| | | | | | | Organized disabled directory so it works with partest. You can run ./partest --srcpath disabled to run the tests in that location. Fixed a few tests in disabled and pending and moved to files.
* massive new collections checkin.Martin Odersky2009-05-081-78/+0
|
* Got rid of warningsSean McDirmid2007-03-301-7/+7
|
* fixed check file for run/bitsets.scalamichelou2007-03-081-0/+4
|
* added more test cases for class BitSetmichelou2007-03-081-15/+59
|
* fixed 2 bugs in classs BitSet and added scalado...michelou2007-03-071-0/+30
fixed 2 bugs in classs BitSet and added scaladoc comment methods isInstanceOf and synchronized