Skip to content

Commit

Permalink
fix: filter comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulBallmann committed Feb 4, 2022
1 parent e0d5fa7 commit 2979108
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ final class dgca_bloomfilter_iosTests: XCTestCase {
}
}
// get base64 string of filter after all elems have been added
guard let dataFromArray = arrayToData(intArray: filter.getData()) else { throw FilterError.unknownError }
guard let dataFromArray = arrayToData(intArray: filter.getData()) else { throw FilterError.unknownError } /// Seems to be broken!
let base64String = dataFromArray.base64EncodedString()
print("Swift Filter: \(base64String) vs. Java: \(element.filter)")
if base64String.elementsEqual(element.filter) {
print("BASE64TEST: SUCCESS!")
print("FILTER COMPARE: SUCCESS!")
} else {
print("BASE64TEST: FAILURE!")
print("FILTER COMPARE: FAILURE!")
}
var exists: [Int32] = [Int32](repeating: 0, count: element.data.count)
//var exists: [Int32] = [Int32(element.data.count)]
Expand Down

0 comments on commit 2979108

Please sign in to comment.