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

Feat/delivery time edge case #11

Merged
merged 10 commits into from
Oct 24, 2022
Merged

Conversation

kenchoong
Copy link
Owner

@kenchoong kenchoong commented Oct 24, 2022

Summary

  • Change algorithm of getPackageComboPerTrip, using Improper subset method, to cover the edge cases (Some high level thinking here)
  • Helper method decideSendFirstCombo and test cases
  • Helper method getPackageComboSequence and test cases
  • Use getPackageComboSequence in DeliveryTimeService file
  • Remove comment in DeliveryTimeService
  • Add more test case in DeliveryTimeService to cover edge case
  • Create separate mock file for better reusability in multiple test case and easier to work in IDE

Mainly solve this reported issue: #10

@kenchoong kenchoong merged commit fe86b6e into master Oct 24, 2022
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.

None yet

1 participant