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

fixed break #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fixed break #55

wants to merge 1 commit into from

Conversation

AbubakrHassan
Copy link
Collaborator

No description provided.

Copy link
Owner

@EltayebAhmed EltayebAhmed left a comment

Choose a reason for hiding this comment

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

During our discussion yesterday me and @AmrKhalifa found that the unit tests catch issues where a bug in one component, for instance break causes something else for instance variables to malfunction. That is why I suggested you add a few more prints. Always try to test as aggressively as possible.

code = """
void main() {
int x=0;
while (1){
Copy link
Owner

Choose a reason for hiding this comment

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

add a printf("%i ", x); here

def test_with_variable_and_while(self):
code = """
void main() {
int x=0;
Copy link
Owner

Choose a reason for hiding this comment

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

add a printf("%i", x); here

@EltayebAhmed
Copy link
Owner

consider the case
while (1)
break;
This relates closely to issue #49

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