]> git.madduck.net Git - etc/vim.git/blob - t/settings.vader

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

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.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Minimal test of generate
[etc/vim.git] / t / settings.vader
1 Given pass (short password):
2   pass
3
4 Execute (test short password syntax):
5   AssertEqual SyntaxAt(2), 'password_store_password_short'
6
7 Given pass (longer password):
8   passwordlonger
9
10 Execute (test longer password syntax):
11   AssertEqual SyntaxAt(2), 'password_store_password'
12
13 Given pass (another password):
14   passwordlonger
15
16 Before (disable syntax):
17   let g:password_store_settings = {}
18   let g:password_store_settings.enable_syntax = 'false'
19
20 Execute (test disable syntax ):
21   AssertEqual &filetype, 'pass'
22
23 Execute (test increment password length):
24   AssertEqual len( password_store#generate()), 12
25
26 Execute (test new generates do not match):
27   AssertNotEqual password_store#generate(), password_store#generate()