X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/1cecd38f650bb32723bb21124d5003ecacb0c59a..dc759ab32b05afeba5c103e2756ec4a2509fdaf6:/t/settings.vader?ds=sidebyside diff --git a/t/settings.vader b/t/settings.vader index fd45da9..aab7688 100644 --- a/t/settings.vader +++ b/t/settings.vader @@ -25,3 +25,18 @@ Execute (test increment password length): Execute (test new generates do not match): AssertNotEqual password_store#generate(), password_store#generate() + +Given text (test ftdetect): + passwordtesting + +Before (mimic settings): + let g:password_store_settings = {} + let g:password_store_settings.enable_syntax = 'false' + let g:password_store_settings.pw_length = '16' + +Execute (test ftdetect trigger): + set filetype=pass + AssertEqual password_store#setting('enable_syntax'), 'false' + AssertEqual len( password_store#generate() ), 16 + +