Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(NegativeSampleGenerator): Align operator in added unit test
Signed-off-by: David Dreschner <[email protected]>
  • Loading branch information
DerDreschner authored and ChristophWurst committed Jan 7, 2025
commit 2d8946674356c992ec64b744f437faea461bb47b
3 changes: 2 additions & 1 deletion tests/Unit/Service/NegativeSampleGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ public function testGenerateMultipleShuffledFromLimitedUnique(): void {
* DataSet can consist of multiple unique entries only. If not handled correctly,
* this will result in an array without any IP. This tests the
* correct handling. See GitHub issue #860 for more.
* @return void
*/
public function testGenerateMultipleShuffledFromUniquesOnly(): void {
$positives = new Unlabeled([
Expand All @@ -151,7 +152,7 @@ public function testGenerateMultipleShuffledFromUniquesOnly(): void {
$ipVec = array_slice($sample, 16, 32);

self::assertTrue(
$ipVec == self::decToBitArray(1, 32) ||
$ipVec === self::decToBitArray(1, 32) ||
$ipVec === self::decToBitArray(2, 32),
'Sample has an unique IP'
);
Expand Down