Skip to content

Add more test cases for IfStmt and make code simple #48 #51

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 1 commit into
base: main
Choose a base branch
from

Conversation

shivamsingh8883
Copy link

For adding more test cases to IfStmt class to make sure it works in all cases. Also, I simplified the code a bit by removing extra lines and making it small

Changes made are: 1) Added test cases for conditions and branches that raise exceptions, 2) Removed unnecessary comments and made lambdas shorter, 3) Checked that everything works fine after changes.

Plz review and let me know if anything is wrong. Thanks!

@yuvi-mittal
Copy link
Contributor

yuvi-mittal commented Apr 6, 2025

@shivamsingh8883 , Please look into the CI errors . The test cases should follow the similar pattern as in test_for_loops.py .

@yuvi-mittal
Copy link
Contributor

@shivamsingh8883 , i have added test cases for IfStmt, can you please go through them once, and if you still feel the need to add more, reopen the PR and work on the CI errors !?

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.

2 participants