-
-
Notifications
You must be signed in to change notification settings - Fork 766
Expand file tree
/
Copy pathsimple.vader
More file actions
22 lines (18 loc) · 633 Bytes
/
simple.vader
File metadata and controls
22 lines (18 loc) · 633 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
" Simple Vader test for validation
" This test doesn't require python-mode functionality
Execute (Basic assertion):
Assert 1 == 1, 'Basic assertion should pass'
Execute (Vim is working):
Assert exists(':quit'), 'Vim should have quit command'
Execute (Buffer operations):
new
call setline(1, 'Hello World')
Assert getline(1) ==# 'Hello World', 'Buffer content should match'
bwipeout!
Execute (Simple python code):
new
setlocal filetype=python
call setline(1, 'print("test")')
Assert &filetype ==# 'python', 'Filetype should be python'
Assert getline(1) ==# 'print("test")', 'Content should match'
bwipeout!