refactor(vim.version): cleanup

- version.cmp(): assert valid version
- add test for loading vim.version (the other tests use shared.lua in
  the test runner)
- reduce test scopes, reword test descriptions
This commit is contained in:
Justin M. Keyes
2023-03-06 13:23:03 +01:00
parent 0e7196438d
commit e31e49a8e3
6 changed files with 439 additions and 478 deletions

View File

@@ -194,6 +194,7 @@ CONFIG = {
'keymap': 'vim.keymap',
'fs': 'vim.fs',
'secure': 'vim.secure',
'version': 'vim.version',
},
'append_only': [
'shared.lua',