-
Notifications
You must be signed in to change notification settings - Fork 25
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
[Enhancement] Add diff lib for kcl test assert errors. #112
Comments
Hey @Peefy, I would like to work on this. |
Hi @professorabhay. Thank you for contributing to the KCL community. The expectation is to provide a diff library written by KCL to display the differences between KCL configurations at the module repo: https://github.com/kcl-lang/modules |
Hello @professorabhay If you have any difficulties, please feel free to communicate at any time. According to that the issue has been open for over two weeks. |
Hey @Peefy, I have my exams ongoing but will try to resolve it and raise a PR by the end of Thursday. |
Hey @Peefy, First of all, sorry for the delay. I give it a try but having some hurdles while resolving it. |
Hi @professorabhay, I'm glad you're still working here. The purpose of this issue is to use KCL to develop a difflib library for string diff, just like how Python's difflib does. The things that need to be done are as follows:
The output is
|
Ok, Thanks for the update @Peefy. |
Good Job |
What to write in this |
You can raise the PR. The next step is to write the implementation of difflib in main.k, and you can refer to the implementation of difflib in Python |
Please take a look to that -
|
The logic is right. You can translate it to KCL and raise a PR |
Enhancement
For example, I want to obtain diff information from the error message in the following code.
The text was updated successfully, but these errors were encountered: