Corrected an error in the math fuzzy completion test

This commit is contained in:
Johannes Maria Frank
2019-10-10 13:23:33 +02:00
parent a84087682d
commit 1fa678e3fe

View File

@@ -317,13 +317,13 @@ def test_str_fuzzy_completion(Script):
reason="requires python3.3 or higher")
def test_math_fuzzy_completion(Script):
script = Script('import math\nmath.og')
assert ['copysign', 'log', 'log10',
'log1p'] == [comp.name for comp in script.completions(fuzzy=True)]
assert ['copysign', 'log', 'log10', 'log1p',
'log2'] == [comp.name for comp in script.completions(fuzzy=True)]
@pytest.mark.skipif(sys.version_info >= (3, 3),
reason="requires python3.3 or higher")
def test_math_fuzzy_completion(Script):
script = Script('import math\nmath.og')
assert ['copysign', 'log', 'log10', 'log1p',
'log2'] == [comp.name for comp in script.completions(fuzzy=True)]
assert ['copysign', 'log', 'log10',
'log1p'] == [comp.name for comp in script.completions(fuzzy=True)]