We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
`from strsimpy.cosine import Cosine
def test_cosine4_passes_1(): s0 = "0xxs" s1 = "foo bar"
c_4 = Cosine(4) c_4.similarity(s0, s1)
def test_cosine4_fails_1(): s0 = " " s1 = "foo bar"
def test_cosine4_fails_2(): s0 = "0 s" s1 = "foo bar"
c_4 = Cosine(4) c_4.similarity(s0, s1)`
strsimpy version = 0.2.0 platform darwin -- Python 3.8.2, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 profile0 = {} profile1 = {'foo ': 1, 'oo b': 1, 'o ba': 1, ' bar': 1} norm_0 = 0.0 norm_1 = 2.0 FAILED test/test_cosine_sim.py::test_cosine4 - ZeroDivisionError: float division by zero
The text was updated successfully, but these errors were encountered:
This didn't format correctly. The second failing test has 0, two white-spaces and x for the s0 variable.
Sorry, something went wrong.
No branches or pull requests
`from strsimpy.cosine import Cosine
def test_cosine4_passes_1():
s0 = "0xxs"
s1 = "foo bar"
def test_cosine4_fails_1():
s0 = " "
s1 = "foo bar"
def test_cosine4_fails_2():
s0 = "0 s"
s1 = "foo bar"
strsimpy version = 0.2.0
platform darwin -- Python 3.8.2, pytest-6.2.2, py-1.10.0, pluggy-0.13.1
profile0 = {}
profile1 = {'foo ': 1, 'oo b': 1, 'o ba': 1, ' bar': 1}
norm_0 = 0.0
norm_1 = 2.0
FAILED test/test_cosine_sim.py::test_cosine4 - ZeroDivisionError: float division by zero
The text was updated successfully, but these errors were encountered: