From e4daf7a74c501381a62254b2cd922d74d6e62ac7 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sat, 2 Jan 2021 04:05:24 +0100 Subject: [PATCH] Fix a test around signatures that was failing sometimes --- test/vspec/signatures.vim | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/vspec/signatures.vim b/test/vspec/signatures.vim index ed0df20..a4b1e72 100644 --- a/test/vspec/signatures.vim +++ b/test/vspec/signatures.vim @@ -47,18 +47,18 @@ describe 'signatures' it 'highlights correct argument' noautocmd normal o doautocmd CursorHoldI - noautocmd normal iprint(42, sep="X", ) + noautocmd normal iformat(42, 2) " Move to "=" - hightlights "sep=...". - noautocmd normal 5h + noautocmd normal h doautocmd CursorHoldI - Expect getline(1) =~# '\V\^?!?jedi=0, ?!? (*values: object, *_*sep: Optional[Text]=...*_*' + Expect getline(1) == '?!?jedi=0, ?!? (value: object, *_*format_spec: str=...*_*) ?!?jedi?!?' " Move left to "=" - hightlights first argument ("values"). " NOTE: it is arguable that maybe "sep=..." should be highlighted " still, but this tests for the cache to be "busted", and that " fresh results are retrieved from Jedi. - noautocmd normal h + noautocmd normal 3h doautocmd CursorHoldI - Expect getline(1) =~# '\V\^?!?jedi=0, ?!? (*_**values: object*_*, sep: Optional[Text]=...,' + Expect getline(1) == '?!?jedi=0, ?!? (*_*value: object*_*, format_spec: str=...) ?!?jedi?!?' end it 'no signature'