]> git.madduck.net Git - etc/vim.git/blobdiff - 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:

Test ftdetect (settings)
[etc/vim.git] / t / settings.vader
index 90a1a6a39df0e44cb4d48563682c0a545744587c..aab7688c212121b64d18a13797845e0cca14a99e 100644 (file)
@@ -18,4 +18,25 @@ Before (disable syntax):
   let g:password_store_settings.enable_syntax = 'false'
 
 Execute (test disable syntax ):
-  AssertEqual SyntaxAt(2), ''
+  AssertEqual &filetype, 'pass'
+
+Execute (test increment password length):
+  AssertEqual len( password_store#generate()), 12
+
+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
+
+