Run edit 3 n/James Lee e/jameslee@example.com should be unsuccessful as person with James Lee exist.
Actual
Command ran successfully.
Screenshots
Considering that I am not able to add two people with the same name, I can however edit a person to have the same name. This defeats the purpose of checking for duplicate Persons when adding them.
Steps to reproduce
edit 2 n/James Lee e/jameslee@example.com
edit 3 n/James Lee e/jameslee@example.com
Expected
Run
edit 3 n/James Lee e/jameslee@example.com
should be unsuccessful as person with James Lee exist.Actual
Command ran successfully.
Screenshots
Considering that I am not able to add two people with the same name, I can however edit a person to have the same name. This defeats the purpose of checking for duplicate Persons when adding them.
[original: nus-cs2103-AY2122S2/pe-interim#2229] [original labels: type.FunctionalityBug severity.Medium]