Add tests for smart_auto_mappings

This commit is contained in:
Daniel Hahler
2015-08-19 22:32:25 +02:00
parent 0703494188
commit 91c2a031df

View File

@@ -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