Skip to content

Commit

Permalink
test: remove ChunkedArrayTest with 0 length.
Browse files Browse the repository at this point in the history
This triggers Log::Fatal which aborts the test program.
  • Loading branch information
cyfdecyf committed Apr 23, 2021
1 parent 8081825 commit 346c76a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tests/cpp_tests/test_chunked_array.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ class ChunkedArrayTest : public testing::Test {
};


/*! ChunkedArray cannot be built from chunks of size 0. */
TEST_F(ChunkedArrayTest, constructorWithChunkSize0Throws) {
ASSERT_THROW(ChunkedArray<int> ca(0), std::runtime_error);
}

/*! get_chunk_size() should return the size used in the constructor */
TEST_F(ChunkedArrayTest, constructorWithChunkSize) {
for (size_t chunk_size = 1; chunk_size < 10; ++chunk_size) {
Expand Down

0 comments on commit 346c76a

Please sign in to comment.