Skip to content

Create Water_Jug_Problem.js function in the Recursive section #1751

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

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update WaterJugProblem.test.js
  • Loading branch information
swappy-2003 authored Oct 24, 2024
commit 74a65b7d02a557316df183f0167ba5b75bf9b405
2 changes: 2 additions & 0 deletions Recursive/test/WaterJugProblem.test.js
Original file line number Diff line number Diff line change
@@ -26,5 +26,7 @@ describe('Water Jug Problem', () => {
expect(() => canMeasureWater(-1, 5, 3)).toThrow('Invalid input: capacities must be non-negative.');
expect(() => canMeasureWater(3, -2, 1)).toThrow('Invalid input: capacities must be non-negative.');
expect(() => canMeasureWater(3, 5, -1)).toThrow('Invalid input: target amount must be non-negative.');


});
});
Loading
Oops, something went wrong.