Skip to content

Commit

Permalink
Make assertionString const
Browse files Browse the repository at this point in the history
  • Loading branch information
franziska-wegner committed Jan 5, 2024
1 parent 0d02e3c commit ee71a74
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/DataStructures/Container/TestBucket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1000,10 +1000,10 @@ TEST_F ( TestBucketWithMultipleInteger
// https://gitlab.inria.fr/Phylophile/Treerecs/blob/f6551e06797b52819ba3e630b92315254a944da5/tests/gtest/googletest/docs/AdvancedGuide.md
::testing::FLAGS_gtest_death_test_style = "threadsafe";

auto assertionString = buildAssertionString ( "Bucket.hpp"
, "Bucket"
, R"(operator.*\[\])"
, R"(HasElementAt\(index\))" );
auto const & assertionString = buildAssertionString ( "Bucket.hpp"
, "Bucket"
, R"(operator.*\[\])"
, R"(HasElementAt\(index\))" );

ASSERT_DEATH ( { bucket_[0]; }, assertionString );
ASSERT_DEATH ( { bucket_[1]; }, assertionString );
Expand Down

0 comments on commit ee71a74

Please sign in to comment.