From: Josef Fortier Date: Sat, 23 Feb 2019 23:47:08 +0000 (-0600) Subject: Test ftdetect (settings) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/dc759ab32b05afeba5c103e2756ec4a2509fdaf6?ds=sidebyside;hp=-c Test ftdetect (settings) triggering ftdetect allows testing post settings --- dc759ab32b05afeba5c103e2756ec4a2509fdaf6 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 + +