Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Feedback: 👎
I created this PR to address this rule:
"All new business logic should have corresponding unit tests."
Description
This PR addresses the issue of missing unit tests for the jieba library. The tests/test_jieba.py file, which was supposed to contain these tests, was missing. This PR adds the tests/test_jieba.py file and includes the necessary unit tests for the jieba library.
The tests cover all the functionalities provided by the jieba library that are used within the Whoosh project. They have been written using the pytest framework and can be executed using the command specified in the tox.ini file.
In addition, the MANIFEST.in file has been updated to include the tests/test_jieba.py file in the distribution package.
Summary of Changes
All tests pass successfully.