diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2016-12-25 17:10:47 +0900 |
---|---|---|
committer | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2016-12-25 17:10:47 +0900 |
commit | f1e3724bd0b2cbe9dce26261d0939e49d1b96374 (patch) | |
tree | 75684c895d974dec1a629c120e79a2b11ee89f54 /test/rplugin | |
parent | 40c5f22b179c462882c41162b13d78f13fa406d5 (diff) | |
download | deoplete.nvim-f1e3724bd0b2cbe9dce26261d0939e49d1b96374.zip |
Fix the tests error
Diffstat (limited to 'test/rplugin')
-rw-r--r-- | test/rplugin/python3/deoplete/test_filter.py | 11 |
1 files changed, 6 insertions, 5 deletions
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 |