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

Candidates that return boolean - false, don't have assertions on saving #13

Open
TheAmg opened this issue Jun 14, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@TheAmg
Copy link
Contributor

TheAmg commented Jun 14, 2024

Describe the bug

On trying to save a candidate for a method that returns false (of type boolean/Boolean), there are no assertions generated for that method.
This does not happen for true, assertions will be generated for true.

Screen.Recording.2024-06-14.at.10.20.21.AM.mov

Example method :

  • Project : unlogged-spring-maven-demo
  • Classname : RecursionController
  • Methodname : getIsPalindrome

Reproduction steps

  1. DirectInvoke any method that returns a boolean -> false value.
  2. Try to save the candidate and check it's assertion.

Expected behavior

For an assertion to be created on trying to save candidates with boolean false return values.

Additional context

No response

@TheAmg TheAmg added the bug Something isn't working label Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant