⚠️ Note: The merging functionality works well with times n packs (e.g. 2x250 and 3x250 would successfully be merged with (250, 500) and (250, 750) packs), but it would not work with decimal point factor difference (1x150 + 99 remaining items wouldn't convert to 1x250, it will be 2x150).
📍 Potential improvements that I've decided to not work on to save time, but worth mentioning:
- Packs merging works only for each pack separately, but not cross-pack (it can merge 2x250 to 1x500, but can't merge 1x250 + 1x500 to 1x750);
- Unit tests cover mostly positive and edge basic cases, but not cover any tricky cases like one with 250+500 merging;
- Decimal point factor difference for packs, as mentioned above;
- UI is not good enough, but basic functionality works;