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

Add basic test for printing variable and list #45

Closed
wants to merge 1 commit into from

Conversation

ee7
Copy link
Contributor

@ee7 ee7 commented Jun 24, 2024

Add a test for

x = 1
l = [2]
print(x)
print(l)

that as of 9e41c6c, produces incorrect behavior locally:

$ c4test ../tests/basic20.c4m
FAIL: test /foo/libcon4m/tests/basic20.c4m: output mismatch.
Expected output
1
[2]
Actual
118800407190880
[2]

This test is a simplification of basic11.c4m, to isolate the incorrect behavior there.

Refs: #41 (comment)

Locally, this fails due to output mismatch:

    Expected output
    1
    [2]
    Actual
    118800407190880
    [2]
@ee7
Copy link
Contributor Author

ee7 commented Jun 27, 2024

This test was added by ef01bc9 (#49).

@ee7 ee7 closed this Jun 27, 2024
@ee7 ee7 deleted the ee7/tests-print-var-and-list branch June 27, 2024 12:21
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.

1 participant