Thanks to visit codestin.com
Credit goes to github.com

Skip to content

add test reference for an error message #2623

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

Merged
merged 1 commit into from
Mar 24, 2024

Conversation

aryangupta701
Copy link
Contributor

@aryangupta701 aryangupta701 commented Mar 24, 2024

fixes #1953

add a test reference in order to address #1953 issue

@aryangupta701
Copy link
Contributor Author

any suggestions for the test file's name?

@kmr-srbh
Copy link
Contributor

kmr-srbh commented Mar 24, 2024

any suggestions for the test file's name?

Hello @aryangupta701! I think the file can be renamed to say test_optional.py since we are testing for the Optional type, which is a part of LFortran, but not supported here in LPython.

Copy link
Collaborator

@ubaidsk ubaidsk left a comment

Choose a reason for hiding this comment

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

Two minor comments. Rest looks good. Thanks for this!

tests/tests.toml Outdated
@@ -1383,3 +1383,7 @@ run_with_dbg = true
[[test]]
filename = "runtime_errors/test_raise_01.py"
run_with_dbg = true

[[test]]
filename = "errors/test_optional_list.py"
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can rename it to test_optional.py. You can add this above line 1350 where you have other error tests listed.

Once you rename, make sure to delete the old reference files.

@ubaidsk ubaidsk marked this pull request as draft March 24, 2024 02:48
@kmr-srbh
Copy link
Contributor

I request you to link this PR with the issue so that it gets closed automatically when this is merged. You can add fixes #1953 in the PR description to link it.

@aryangupta701 aryangupta701 marked this pull request as ready for review March 24, 2024 13:53
Copy link
Collaborator

@ubaidsk ubaidsk left a comment

Choose a reason for hiding this comment

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

It looks good! Thanks! Great work!

@ubaidsk ubaidsk merged commit 6d56882 into lcompilers:main Mar 24, 2024
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.

Bad error message for Optional[list[str] | str]
3 participants