From f1e3724bd0b2cbe9dce26261d0939e49d1b96374 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Sun, 25 Dec 2016 17:10:47 +0900 Subject: Fix the tests error --- test/rplugin/python3/deoplete/test_filter.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'test/rplugin') diff --git a/test/rplugin/python3/deoplete/test_filter.py b/test/rplugin/python3/deoplete/test_filter.py index e8b2ca4..1541e55 100644 --- a/test/rplugin/python3/deoplete/test_filter.py +++ b/test/rplugin/python3/deoplete/test_filter.py @@ -1,4 +1,5 @@ import deoplete.util as util +from deoplete.filter.converter_remove_overlap import overlap_length def test_fuzzy_escapse(): assert util.fuzzy_escape('foo', 0) == 'f[^f]*o[^o]*o[^o]*' @@ -6,11 +7,11 @@ def test_fuzzy_escapse(): assert util.fuzzy_escape('Foo', 1) == 'F[^F]*[oO].*[oO].*' def test_overlap_length(): - assert util.overlap_length('foo bar', 'bar baz') == 3 - assert util.overlap_length('foobar', 'barbaz') == 3 - assert util.overlap_length('foob', 'baz') == 1 - assert util.overlap_length('foobar', 'foobar') == 6 - assert util.overlap_length('тест', 'ст') == len('ст') + assert overlap_length('foo bar', 'bar baz') == 3 + assert overlap_length('foobar', 'barbaz') == 3 + assert overlap_length('foob', 'baz') == 1 + assert overlap_length('foobar', 'foobar') == 6 + assert overlap_length('тест', 'ст') == len('ст') def test_charwidth(): assert util.charwidth('f') == 1 -- cgit v1.2.3