Fix some comments in signature test

This commit is contained in:
Dave Halter
2021-01-02 23:51:07 +01:00
parent 04c708cbfc
commit acd9182131

View File

@@ -47,16 +47,13 @@ describe 'signatures'
it 'highlights correct argument' it 'highlights correct argument'
noautocmd normal o noautocmd normal o
doautocmd CursorHoldI doautocmd CursorHoldI
noautocmd normal iformat(42, 2) noautocmd normal iformat(42, "x")
" Move to "=" - hightlights "sep=...". " Move to x- hightlights "x".
noautocmd normal h noautocmd normal 2h
doautocmd CursorHoldI doautocmd CursorHoldI
Expect getline(1) == '?!?jedi=0, ?!? (value: object, *_*format_spec: str=...*_*) ?!?jedi?!?' Expect getline(1) == '?!?jedi=0, ?!? (value: object, *_*format_spec: str=...*_*) ?!?jedi?!?'
" Move left to "=" - hightlights first argument ("values"). " Move left to 42 - hightlights first argument ("value").
" NOTE: it is arguable that maybe "sep=..." should be highlighted noautocmd normal 4h
" still, but this tests for the cache to be "busted", and that
" fresh results are retrieved from Jedi.
noautocmd normal 3h
doautocmd CursorHoldI doautocmd CursorHoldI
Expect getline(1) == '?!?jedi=0, ?!? (*_*value: object*_*, format_spec: str=...) ?!?jedi?!?' Expect getline(1) == '?!?jedi=0, ?!? (*_*value: object*_*, format_spec: str=...) ?!?jedi?!?'
end end