Skip to content

Commit

Permalink
refactor(assertion-tools): ♻️ Change passing mode to reference for te…
Browse files Browse the repository at this point in the history
…sting assertion movements
  • Loading branch information
DRovara committed Oct 17, 2024
1 parent a631c3e commit 9e285d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/test_assertion_movement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
*/
class AssertionMovementTest : public CustomCodeFixture {
public:
void checkMovements(std::set<std::pair<size_t, size_t>> expected) {
void checkMovements(const std::set<std::pair<size_t, size_t>>& expected) {
std::vector<size_t> oldPositions(expected.size() + 1);
std::vector<size_t> newPositions(expected.size() + 1);
ASSERT_EQ(diagnostics->suggestAssertionMovements(
Expand Down Expand Up @@ -63,5 +63,6 @@ TEST_F(AssertionMovementTest, MoveOverIndependentInstructions) {
assert-ent q[0], q[1];
)");

checkMovements({{4, 3}});
const std::set<std::pair<size_t, size_t>> expected = {{4, 3}};
checkMovements(expected);
}

0 comments on commit 9e285d5

Please sign in to comment.