File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ Versioning
2
2
re: https://github.com/neovim/neovim/pull/5535
3
3
re: https://github.com/neovim/neovim/pull/5386
4
4
5
- [_ ] an we start writing tests for these things?
5
+ [X ] an we start writing tests for these things?
6
6
[X] We'd have to start an nvim --embed, and maybe specify the NVIM_... ?
7
7
[X] Then, we connect
8
8
[X] Test version validation
9
- [_ ] Integration test
9
+ [X ] Integration test
10
10
-insert some text in current buffer
11
11
-command split the a new buffer put some stuff in it
12
12
-command switch back to the original buffer
@@ -17,7 +17,7 @@ Versioning
17
17
the version of Neovim used.
18
18
19
19
Following the philosophy described above, we need
20
- [_ ] Make the user specify required API level on `connect`
20
+ [X ] Make the user specify required API level on `connect`
21
21
22
22
[_] Change the api to one function `exec`, pass the op as the first
23
23
arg, and then use varargs, or a collection of args.
Original file line number Diff line number Diff line change 48
48
(is (client.nvim/version-supported?
49
49
(client.nvim/new* 1 in out false ))))))
50
50
51
+ (deftest change-buffer-text
52
+ (with-neovim
53
+ (let [{:keys [in out]} *neovim*
54
+ conn (client.nvim/new* 1 in out false )]
55
+ (let [b1 (client.nvim/vim-get-current-buffer conn)
56
+ _ (client.nvim/buffer-set-line conn b1 0 " foo" )
57
+ _ (client.nvim/vim-command conn " new" )
58
+ b2 (client.nvim/vim-get-current-buffer conn)
59
+ _ (client.nvim/buffer-set-line conn b2 0 " bar" )]
60
+ (is (= " foo" (client.nvim/buffer-get-line conn b1 0 )))
61
+ (is (= " bar" ) (client.nvim/buffer-get-line conn b2 0 ))))))
62
+
51
63
#_(clojure.tools.namespace.repl/refresh )
52
64
#_(clojure.test/run-tests 'neovim-client.nvim-test)
You can’t perform that action at this time.
0 commit comments