Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update() logic #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

update() logic #4

wants to merge 3 commits into from

Conversation

thedod
Copy link

@thedod thedod commented May 17, 2012

Seems like update() did nothing before. [?!?]
Now it adds the item if not found, removes it if quantity is 0,
and tries to act sanely when something goes wrong :)

Nimrod S. Kerrett added 3 commits May 17, 2012 22:12
Seems like update() did nothing before. [?!?]
Now it adds the item if not found, removes it if quantity is 0,
and tries to act sanely when something goes wrong :)
Turns our users actually do this in real life :)
@thedod
Copy link
Author

thedod commented May 24, 2012

Although we can't write tests yet (see previous comment), I have the privilege of testing this in an actual project.
This is how I've found out a case that wasn't covered (latest commit fixes it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants