neovim/test/functional/core
Edwin Pujols f2ec058602
tests: Take into account magic hyphen. (#13518)
In Lua patterns the hyphen works like a non-greedy version of Vim's `*`.
- Use `%-` when you need a literal hyphen.
- If you don't need a regular expression at all, use something like
  ```
  string.find(text, pattern, 1, true)
  ```
  so that the pattern is regarded as a plain, non-magical string.
  See [1] and [2] in the Lua manual.

[1]: https://www.lua.org/manual/5.1/manual.html#pdf-Patterns
[2]: https://www.lua.org/manual/5.1/manual.html#pdf-string.find
2020-12-11 18:54:39 -05:00
..
channels_spec.lua test: is_os() #10933 2019-09-04 06:58:04 -07:00
exit_spec.lua A Mudholland Dr. Recast 2020-10-19 21:48:06 +02:00
fileio_spec.lua vim-patch:8.1.0251: support full paths for 'backupdir' #11269 2019-11-17 23:38:27 -08:00
job_spec.lua A Mudholland Dr. Recast 2020-10-19 21:48:06 +02:00
main_spec.lua terminal: add tests for palette color forwarding 2019-11-03 10:14:58 +01:00
path_spec.lua test: avoid extra clear() calls 2017-10-02 01:46:16 +02:00
spellfile_spec.lua test: cleanup 2019-05-05 23:01:35 +02:00
startup_spec.lua tests: Take into account magic hyphen. (#13518) 2020-12-11 18:54:39 -05:00