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

Throw an exception no argument #295

Merged
merged 5 commits into from
Jun 28, 2023
Merged

Conversation

issacto
Copy link
Collaborator

@issacto issacto commented Jun 26, 2023

No description provided.

@issacto issacto linked an issue Jun 26, 2023 that may be closed by this pull request
@issacto issacto force-pushed the throw-an-exception-no-argument branch from 7ed57de to cc321be Compare June 26, 2023 08:50
Copy link
Collaborator

@dakaa16 dakaa16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Isaac,
This looks fine, and actually completely solves what was stated in the issue. I have edited the issue to better reflect all that needs to be solved, regarding this bug. Hope it all makes sense 😄

@issacto issacto force-pushed the throw-an-exception-no-argument branch from d30456f to 110129c Compare June 27, 2023 09:45
@@ -133,4 +133,15 @@ public void it_throws_when_no_value_is_passed_for_the_last_argument_and_it_requi
});
}

@Test
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Issac,

please add another unit test, where it throws the error when you have given arguments, but -p is not there.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey David, I just added the new test case!

Signed-off-by: issacto <[email protected]>
Signed-off-by: issacto <[email protected]>
Signed-off-by: issacto <[email protected]>
Signed-off-by: issacto <[email protected]>
Signed-off-by: issacto <[email protected]>
@issacto issacto force-pushed the throw-an-exception-no-argument branch from 136e377 to 82c37af Compare June 27, 2023 14:03
@issacto issacto merged commit c7ed8cc into Developer Jun 28, 2023
@Rune-Christensen Rune-Christensen deleted the throw-an-exception-no-argument branch August 28, 2023 13:24
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.

Throw an exception when required argument is not given
2 participants