Skip to content

Commit

Permalink
Remove temporary test with deliberate leak
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon committed Jan 3, 2024
1 parent 1ff6fe0 commit 2ffc6c6
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions sampling/test/ebpps_sketch_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,6 @@ TEST_CASE("ebpps sketch: invalid k", "[ebpps_sketch]") {
REQUIRE_THROWS_AS(ebpps_sketch<int>(ebpps_constants::MAX_K + 1), std::invalid_argument);
}

TEST_CASE("leak memory", "[ebpps_sketch]") {
int* x = new int[4];
x[0] = 5;
x[1] = x[0] - 3;
REQUIRE(x[0] == x[1] + 3);
}

TEST_CASE("ebpps sketch: invalid weights", "[ebpps_sketch]") {
uint32_t k = 100;
ebpps_sketch<int> sk = create_unweighted_sketch(k, 3);
Expand Down

0 comments on commit 2ffc6c6

Please sign in to comment.