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

FIX diff to generate the correct context for short inputs and append newlines to the output #333

Merged
merged 6 commits into from
Jan 26, 2022

Conversation

PIG208
Copy link
Contributor

@PIG208 PIG208 commented Jan 26, 2022

This fixes the following bugs:

  • When a mismatch occurs and one input is shorter than another, the remaining lines in the longer input will be discarded while the context might not have reached the desired number of lines (having 1 line instead of 5 for example).
  • Newlines are not added to the output generated.
  • Fix the confusion between the expected and actual output (the tooltip showed Actual / Expected while the expected output appears in the left)

It also removes an unused log message.

@PIG208
Copy link
Contributor Author

PIG208 commented Jan 26, 2022

error

The actual and expected lines should appear on the different sides. This happens because of the lack of newlines.

To run the tests for cli, cd into the cli folder,
install the requirements into the venv with `pip install requirements.txt`,
then run `pytest` directly.
@wabscale wabscale merged commit fc6d867 into AnubisLMS:master Jan 26, 2022
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