From 91c2a031dfb8193fcc204633d0cb005ee1b60cae Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 19 Aug 2015 22:32:25 +0200 Subject: [PATCH] Add tests for smart_auto_mappings --- test/completions.vim | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/completions.vim b/test/completions.vim index cd57da9..60cafbe 100644 --- a/test/completions.vim +++ b/test/completions.vim @@ -11,6 +11,17 @@ describe 'completions' bd! end + it 'smart import' + exec "normal ifrom os " + Expect getline('.') == 'from os import ' + end + + it 'no smart import after space' + exec "normal! ifrom os " + exec "normal a " + Expect getline('.') == 'from os ' + end + it 'import' " X is the completion command normal oimporX