Skip to content

add test to cover deque::erase(iter, iter) and avoiding self-move-assigns - #1203

Merged
Stephan T. Lavavej (StephanTLavavej) merged 1 commit into
microsoft:masterfrom
Arzaghi:Fix_Issue1176
Aug 22, 2020
Merged

add test to cover deque::erase(iter, iter) and avoiding self-move-assigns#1203
Stephan T. Lavavej (StephanTLavavej) merged 1 commit into
microsoft:masterfrom
Arzaghi:Fix_Issue1176

Conversation

@Arzaghi

@Arzaghi Hamid Reza Arzaghi (Arzaghi) commented Aug 17, 2020

Copy link
Copy Markdown
Contributor

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?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Perfect, thanks!

@Arzaghi Hamid Reza 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
Stephan T. Lavavej (StephanTLavavej) merged commit 0926c82 into microsoft:master Aug 22, 2020
@StephanTLavavej

Copy link
Copy Markdown
Member

Thanks for enhancing this test coverage! 😸 ✔️

@Arzaghi
Hamid Reza 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