anhaidgroup / py_stringmatching

A comprehensive and scalable set of string tokenizers and similarity measures in Python
https://sites.google.com/site/anhaidgroup/projects/py_stringmatching
BSD 3-Clause "New" or "Revised" License
135 stars 16 forks source link

py_stringmatching/tests/test_simfunctions.py #24

Closed rishab93 closed 7 years ago

rishab93 commented 7 years ago

Added some extra test cases for tversky similarity measure.

The added test cases are necessary because:

  1. There is no test case where Set B is empty and Set A is not empty.
  2. There is no test case where Set B is not empty and Set A is not empty with alpha being equal to zero.

Steps followed to make these changes:

  1. Made a new local branch called tversky.
  2. Added the extra test cases to the file test_simfunctions.py.
  3. Ran nostests successfully.
  4. Commited the changes on the local branch.
  5. Raised a pull request.
coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling bbf8b1e8620bcdfdb4c789a8fe576211607e612c on rishab93:tversky into b568b6b4de8956250bcca3b45c69523d7ab1bfe3 on anhaidgroup:master.