Skip to content

Conversation

@Arzaghi
Copy link
Contributor

@Arzaghi Arzaghi commented Aug 17, 2020

Followed by the Issue #1176 I've modified the test to cover the fixed issue #1118

The previous test case test deque::erase(begin, begin) did not test self-assignment. Because in that special case the issue mentioned in #1118 wasn't happening. I've changed it to erase(begin+1, begin+1) which now actually can test for avoiding self-assignment.

however, I wasn't sure that should I just modify the test case or add a new test block?

@Arzaghi Arzaghi requested a review from a team as a code owner August 17, 2020 21:21
@CaseyCarter CaseyCarter added the test Related to test code label Aug 17, 2020
Copy link
Member

@StephanTLavavej StephanTLavavej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, thanks!

@StephanTLavavej StephanTLavavej self-assigned this Aug 21, 2020
@Arzaghi Arzaghi changed the title Modify test to cover deque::erase(iter, iter) and avoiding self-move-assigns add test to cover deque::erase(iter, iter) and avoiding self-move-assigns Aug 21, 2020
@StephanTLavavej StephanTLavavej merged commit 0926c82 into microsoft:master Aug 22, 2020
@StephanTLavavej
Copy link
Member

Thanks for enhancing this test coverage! 😸 ✔️

@Arzaghi Arzaghi deleted the Fix_Issue1176 branch August 22, 2020 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test Related to test code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add test coverage for deque::erase(iter, iter) avoiding self-move-assigns

3 participants