All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
1 Given pass (short password):
4 Execute (test short password syntax):
5 AssertEqual SyntaxAt(2), 'password_store_password_short'
7 Given pass (longer password):
10 Execute (test longer password syntax):
11 AssertEqual SyntaxAt(2), 'password_store_password'
13 Given pass (another password):
16 Before (disable syntax):
17 let g:password_store_settings = {}
18 let g:password_store_settings.enable_syntax = 'false'
20 Execute (test disable syntax ):
21 AssertEqual &filetype, 'pass'
23 Execute (test increment password length):
24 AssertEqual len( password_store#generate()), 12
26 Execute (test new generates do not match):
27 AssertNotEqual password_store#generate(), password_store#generate()
29 Given text (test ftdetect):
32 Before (mimic settings):
33 let g:password_store_settings = {}
34 let g:password_store_settings.enable_syntax = 'false'
35 let g:password_store_settings.pw_length = '16'
37 Execute (test ftdetect trigger):
39 AssertEqual password_store#setting('enable_syntax'), 'false'
40 AssertEqual len( password_store#generate() ), 16
42 Execute (test highlight group parsing):
43 Assert password_store#get_highight('Comment', 'guifg') =~# '\v#[0-9a-f]{6}'
44 Assert password_store#get_highight('Comment', 'not_a_real_group') =~# ''