Under Saving the data section, it is stated that data is saved whenever the user use any commands that edits/updates/adds data, but data is also written when the command executed doesn't modify the data in anyway.
Consider the following scenario:
Open up two instances of the app. (We will refer to them as Instance1 and Instance2 respectively)
Edit the name of the first person in Instance1 using "edit 1 n/newName"
Execute "show" command in Instance2
Examine the data file
Expected: name of first person should be "newName"
Actual: name of first person is still the old name
Under Saving the data section, it is stated that data is saved whenever the user use any commands that edits/updates/adds data, but data is also written when the command executed doesn't modify the data in anyway.
Consider the following scenario:
Expected: name of first person should be "newName"
Actual: name of first person is still the old name