diff options
author | Stefan Zeiger <szeiger@novocode.com> | 2011-12-01 15:01:33 +0100 |
---|---|---|
committer | Stefan Zeiger <szeiger@novocode.com> | 2011-12-01 15:01:33 +0100 |
commit | 2d0f82898dc6e3998db425dbab571ba297deda41 (patch) | |
tree | 0e6d53a8f0c9928338996eb155f634f779974739 /test/files/run/bitsets.check | |
parent | 51f5831b0c0d14c28938a6f537b93f183217d942 (diff) | |
download | scala-2d0f82898dc6e3998db425dbab571ba297deda41.tar.gz scala-2d0f82898dc6e3998db425dbab571ba297deda41.tar.bz2 scala-2d0f82898dc6e3998db425dbab571ba297deda41.zip |
Improved BitSet implementations
- 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
Diffstat (limited to 'test/files/run/bitsets.check')
-rw-r--r-- | test/files/run/bitsets.check | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/test/files/run/bitsets.check b/test/files/run/bitsets.check index 478de261af..3f01d2a400 100644 --- a/test/files/run/bitsets.check +++ b/test/files/run/bitsets.check @@ -14,6 +14,29 @@ mi0 = BitSet(2) mi1 = BitSet(2) mi2 = BitSet(2) +m2_m0 = List(1010101010101010101010101) +m2_m2 = List(ffffffffffffffff, ffffffffffffffff, ffffffffffffffff, ffffffffffffffff, 1, 0, 0, 0) +m2_m0c = true +m2_m1c = true +m2_m2c = true +m2_m3c = true +m2_i0 = true +m2_i1 = true +m2_i2 = true +m2_i3 = true +m2_f0 = true +m2_f1 = true +m2_f2 = true +m2_f3 = true +m2_t0 = true +m2_t1 = true +m2_t2 = true +m2_t3 = true +m2_r0 = true +m2_r1 = true +m2_r2 = true +m2_r3 = true + is0 = BitSet() is1 = BitSet() is2 = BitSet(2) @@ -31,3 +54,26 @@ ia1 = List() ia2 = List(2) ia3 = List() +i2_m0 = List(1010101010101010101010101) +i2_m2 = List(ffffffffffffffff, ffffffffffffffff, ffffffffffffffff, ffffffffffffffff, 1) +i2_m0c = true +i2_m1c = true +i2_m2c = true +i2_m3c = true +i2_i0 = true +i2_i1 = true +i2_i2 = true +i2_i3 = true +i2_f0 = true +i2_f1 = true +i2_f2 = true +i2_f3 = true +i2_t0 = true +i2_t1 = true +i2_t2 = true +i2_t3 = true +i2_r0 = true +i2_r1 = true +i2_r2 = true +i2_r3 = true + |