Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
yaooqinn committed Nov 16, 2015
1 parent b9cc414 commit 64e7295
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,11 @@ class MapStatusSuite extends SparkFunSuite {

test("RoaringBitmap: runOptimize succeeded") {
val r = new RoaringBitmap
for (i <- 1 to 200000) {
if(i % 200 != 0)
(1 to 200000).foreach(i =>
if (i % 200 != 0) {
r.add(i)
}
}
)
val size1 = r.getSizeInBytes
val success = r.runOptimize()
r.trim()
Expand All @@ -115,10 +116,11 @@ class MapStatusSuite extends SparkFunSuite {

test("RoaringBitmap: runOptimize failed") {
val r = new RoaringBitmap
for (i <- 1 to 200000) {
if(i % 200 == 0)
(1 to 200000).foreach(i =>
if (i % 200 == 0) {
r.add(i)
}
}
)
val size1 = r.getSizeInBytes
val success = r.runOptimize()
r.trim()
Expand Down

0 comments on commit 64e7295

Please sign in to comment.