summaryrefslogtreecommitdiff
path: root/test/python
diff options
context:
space:
mode:
authordelphinus <me@delphinus.dev>2019-06-25 17:57:38 +0900
committerdelphinus <me@delphinus.dev>2019-06-25 18:04:04 +0900
commita3521de64e8dfc2e8dbfc562fbc73502ba3e09ce (patch)
tree560d06bf77e7cecf111acc512c66761475acf572 /test/python
parent4e1c46947dca552d86cd49a80714237801e01998 (diff)
downloadale-a3521de64e8dfc2e8dbfc562fbc73502ba3e09ce.zip
Use input_patterns & add comments for updating it
Diffstat (limited to 'test/python')
-rw-r--r--test/python/test_deoplete_source.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/python/test_deoplete_source.py b/test/python/test_deoplete_source.py
index d219eef1..280df2e3 100644
--- a/test/python/test_deoplete_source.py
+++ b/test/python/test_deoplete_source.py
@@ -41,7 +41,11 @@ class DeopleteSourceTest(unittest.TestCase):
)
self.assertEqual(attributes, {
- 'input_pattern': r'(\.|::|->)\w*$',
+ 'input_patterns': {
+ '_': r'\.\w*$',
+ 'rust': r'(\.|::)\w*$',
+ 'typescript': r'(\.|\'|")\w*$',
+ },
'is_bytepos': True,
'mark': '[L]',
'min_pattern_length': 1,