Skip to content

Commit

Permalink
fix: conversion errors
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulBallmann committed Feb 7, 2022
1 parent 6da5fa0 commit 7ad46b4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public void testProbabilistcRate() throws FilterException, IOException, NoSuchAl
filter.add(new byte[]{8, 1, 2, 3, 6});

int falsePositives = doScans(filter, scans);
assert propScan >= (float) ((float) falsePositives / (float) scans);
assert propScan >= ((float) falsePositives / (float) scans);
}

@Test
Expand All @@ -203,7 +203,7 @@ public void testProbabilistcRate2() throws FilterException, IOException, NoSuchA
filter.add(new byte[]{8, 1, 2, 3, 6});

int falsePositives = doScans(filter, scans);
assert propScan >= (float) ((float) falsePositives / (float) scans);
assert propScan >= ((float) falsePositives / (float) scans);
}

@Test
Expand Down Expand Up @@ -297,7 +297,7 @@ public void runBase64Test() throws FilterException, NoSuchAlgorithmException, IO

/// END NEW


public void runBloomFilterTest() throws FilterException, IOException, NoSuchAlgorithmException {
assert this.testObjects != null;
for (int i = 0; i < this.testObjects.size(); i++) {
Expand Down

0 comments on commit 7ad46b4

Please sign in to comment.