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

tests/test_parsing_expressions: fix specific assert statements #111

Merged
merged 1 commit into from
Apr 8, 2023

Conversation

stanislaw
Copy link
Contributor

I apologize for the fast coding yesterday. I marked with "FIXME" some of the tests incorrectly.

Code review checklist

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)
  • Title summarizes what is changing
  • Commit messages are meaningful (see this for details)
  • Tests have been included and/or updated

Doesn't seem to be applicable:

  • Docstrings have been included and/or updated, as appropriate
  • Standalone docs have been updated accordingly
  • Changelog(s) has/have been updated, as needed (see CHANGELOG.md, no need
    to update for typo fixes and such).

I apologize for the fast coding yesterday. I marked with "FIXME" some of the
tests incorrectly.
@@ -201,18 +199,17 @@ def grammar():
"Expected 'b' at position (1, 7) => 'a, c, *'."
) == str(e.value)

# FIXME: This looks strange. Shouldn't be ',' at position 6?
with pytest.raises(NoMatch):
# FIXME: Shouldn't the ',' be at position 5?
Copy link
Member

Choose a reason for hiding this comment

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

I think that the position is good as , should be found instead of c (at the position of c) and the column number is one-based.

@igordejanovic
Copy link
Member

No problem. I missed those during the review also. There is one comment above but I'm nevertheless merging this change as we can work out comments in later iterations.

@igordejanovic igordejanovic merged commit 57dd9a6 into textX:master Apr 8, 2023
6 checks passed
@stanislaw stanislaw deleted the more_fixes branch April 8, 2023 13:12
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.

None yet

2 participants