Fixed some neovim test context issues, added repeated commands in vim mode, and ported some tests to use the neovim testing strategy
This commit is contained in:
parent
b82db3a254
commit
515c1ea123
971 changed files with 838 additions and 11898 deletions
|
@ -0,0 +1 @@
|
|||
[{"Text":""},{"Head":{"row":0,"column":0}},{"Mode":"Normal"},{"Text":"This is a test"},{"Head":{"row":0,"column":13}},{"Mode":"Normal"}]
|
1
crates/vim/test_data/test_a.json
Normal file
1
crates/vim/test_data/test_a.json
Normal file
|
@ -0,0 +1 @@
|
|||
[{"Text":"The quick"},{"Head":{"row":0,"column":6}},{"Mode":"Insert"},{"Text":"The quick"},{"Head":{"row":0,"column":9}},{"Mode":"Insert"}]
|
1
crates/vim/test_data/test_backspace.json
Normal file
1
crates/vim/test_data/test_backspace.json
Normal file
|
@ -0,0 +1 @@
|
|||
[{"Text":"The quick\nbrown"},{"Head":{"row":0,"column":0}},{"Mode":"Normal"},{"Text":"The quick\nbrown"},{"Head":{"row":0,"column":4}},{"Mode":"Normal"},{"Text":"The quick\nbrown"},{"Head":{"row":0,"column":8}},{"Mode":"Normal"}]
|
1
crates/vim/test_data/test_change_around_sentence.json
Normal file
1
crates/vim/test_data/test_change_around_sentence.json
Normal file
|
@ -0,0 +1 @@
|
|||
[{"Text":"Fox Jumps! Over the lazy."},{"Head":{"row":0,"column":0}},{"Mode":"Insert"},{"Text":"Fox Jumps! Over the lazy."},{"Head":{"row":0,"column":0}},{"Mode":"Insert"},{"Text":"Fox Jumps! Over the lazy."},{"Head":{"row":0,"column":0}},{"Mode":"Insert"},{"Text":"The quick brown? Over the lazy."},{"Head":{"row":0,"column":17}},{"Mode":"Insert"},{"Text":"The quick brown? Over the lazy."},{"Head":{"row":0,"column":17}},{"Mode":"Insert"},{"Text":"The quick brown? Over the lazy."},{"Head":{"row":0,"column":17}},{"Mode":"Insert"},{"Text":"The quick brown? Fox Jumps!"},{"Head":{"row":0,"column":27}},{"Mode":"Insert"},{"Text":"The quick brown? Fox Jumps!"},{"Head":{"row":0,"column":27}},{"Mode":"Insert"},{"Text":"The quick brown? Fox Jumps!"},{"Head":{"row":0,"column":27}},{"Mode":"Insert"},{"Text":"The quick brown? Fox Jumps!"},{"Head":{"row":0,"column":27}},{"Mode":"Insert"},{"Text":"The quick \nbrown fox jumps over\n"},{"Head":{"row":0,"column":0}},{"Mode":"Insert"},{"Text":"The quick \nbrown fox jumps over\n"},{"Head":{"row":0,"column":0}},{"Mode":"Insert"},{"Text":"The quick \nbrown fox jumps over\n"},{"Head":{"row":0,"column":0}},{"Mode":"Insert"},{"Text":"The quick \nbrown fox jumps over\n"},{"Head":{"row":0,"column":0}},{"Mode":"Insert"},{"Text":"The quick \nbrown fox jumps over\n"},{"Head":{"row":0,"column":0}},{"Mode":"Insert"},{"Text":"The quick brown \nfox jumps over\nthe lazy dog.\n"},{"Head":{"row":2,"column":13}},{"Mode":"Insert"},{"Text":"The quick brown \nfox jumps over\nthe lazy dog.\n"},{"Head":{"row":2,"column":13}},{"Mode":"Insert"},{"Text":"The quick brown \nfox jumps over\nthe lazy dog.\n"},{"Head":{"row":2,"column":13}},{"Mode":"Insert"},{"Text":"Brown fox jumps. "},{"Head":{"row":0,"column":0}},{"Mode":"Insert"},{"Text":"Brown fox jumps. "},{"Head":{"row":0,"column":0}},{"Mode":"Insert"},{"Text":"Brown fox jumps. "},{"Head":{"row":0,"column":0}},{"Mode":"Insert"},{"Text":"Brown fox jumps. "},{"Head":{"row":0,"column":0}},{"Mode":"Insert"},{"Text":"Brown fox jumps. "},{"Head":{"row":0,"column":0}},{"Mode":"Insert"},{"Text":"Brown fox jumps. "},{"Head":{"row":0,"column":0}},{"Mode":"Insert"},{"Text":"The quick brown.)]'\" "},{"Head":{"row":0,"column":21}},{"Mode":"Insert"},{"Text":"The quick brown.)]'\" "},{"Head":{"row":0,"column":21}},{"Mode":"Insert"}]
|
|
@ -1 +0,0 @@
|
|||
Fox Jumps! Over the lazy.
|
|
@ -1 +0,0 @@
|
|||
0,16
|
|
@ -1 +0,0 @@
|
|||
0,0
|
|
@ -1 +0,0 @@
|
|||
"Insert"
|
|
@ -1 +0,0 @@
|
|||
Fox Jumps! Over the lazy.
|
|
@ -1 +0,0 @@
|
|||
0,0
|
|
@ -1 +0,0 @@
|
|||
"Insert"
|
|
@ -1 +0,0 @@
|
|||
Fox Jumps! Over the lazy.
|
|
@ -1 +0,0 @@
|
|||
0,0
|
|
@ -1 +0,0 @@
|
|||
"Insert"
|
|
@ -1 +0,0 @@
|
|||
The quick brown? Over the lazy.
|
1
crates/vim/test_data/test_change_around_word.json
Normal file
1
crates/vim/test_data/test_change_around_word.json
Normal file
File diff suppressed because one or more lines are too long
|
@ -1,12 +0,0 @@
|
|||
The quick
|
||||
fox jumps over
|
||||
the lazy dog
|
||||
|
||||
|
||||
|
||||
The-quick brown
|
||||
|
||||
|
||||
fox-jumps over
|
||||
the lazy dog
|
||||
|
|
@ -1 +0,0 @@
|
|||
6,0
|
|
@ -1 +0,0 @@
|
|||
"Insert"
|
|
@ -1,12 +0,0 @@
|
|||
The quick brown
|
||||
fox jumps over
|
||||
the lazy dog
|
||||
|
||||
|
||||
|
||||
brown
|
||||
|
||||
|
||||
fox-jumps over
|
||||
the lazy dog
|
||||
|
|
@ -1 +0,0 @@
|
|||
6,0
|
|
@ -1 +0,0 @@
|
|||
"Insert"
|
|
@ -1,12 +0,0 @@
|
|||
The quick brown
|
||||
fox jumps over
|
||||
the lazy dog
|
||||
|
||||
|
||||
|
||||
brown
|
||||
|
||||
|
||||
fox-jumps over
|
||||
the lazy dog
|
||||
|
|
@ -1 +0,0 @@
|
|||
6,0
|
|
@ -1 +0,0 @@
|
|||
"Insert"
|
|
@ -1,12 +0,0 @@
|
|||
The quick brown
|
||||
fox jumps over
|
||||
the lazy dog
|
||||
|
||||
|
||||
|
||||
brown
|
||||
|
||||
|
||||
fox-jumps over
|
||||
the lazy dog
|
||||
|
|
@ -1 +0,0 @@
|
|||
6,0
|
|
@ -1 +0,0 @@
|
|||
1,4
|
|
@ -1 +0,0 @@
|
|||
"Insert"
|
|
@ -1,12 +0,0 @@
|
|||
The quick brown
|
||||
fox jumps over
|
||||
the lazy dog
|
||||
|
||||
|
||||
|
||||
The-quick
|
||||
|
||||
|
||||
fox-jumps over
|
||||
the lazy dog
|
||||
|
|
@ -1 +0,0 @@
|
|||
6,9
|
|
@ -1 +0,0 @@
|
|||
"Insert"
|
|
@ -1,12 +0,0 @@
|
|||
The quick brown
|
||||
fox jumps over
|
||||
the lazy dog
|
||||
|
||||
|
||||
|
||||
The-quick
|
||||
|
||||
|
||||
fox-jumps over
|
||||
the lazy dog
|
||||
|
|
@ -1 +0,0 @@
|
|||
6,10
|
|
@ -1 +0,0 @@
|
|||
"Insert"
|
|
@ -1,9 +0,0 @@
|
|||
The quick brown
|
||||
fox jumps over
|
||||
the lazy dog
|
||||
|
||||
|
||||
|
||||
The-quick brown over
|
||||
the lazy dog
|
||||
|
|
@ -1 +0,0 @@
|
|||
6,15
|
|
@ -1 +0,0 @@
|
|||
"Insert"
|
|
@ -1 +0,0 @@
|
|||
"Insert"
|
|
@ -1,10 +0,0 @@
|
|||
The quick brown
|
||||
fox jumps over
|
||||
the lazy dog
|
||||
|
||||
|
||||
|
||||
The-quick brown
|
||||
over
|
||||
the lazy dog
|
||||
|
|
@ -1 +0,0 @@
|
|||
7,0
|
|
@ -1 +0,0 @@
|
|||
"Insert"
|
|
@ -1,11 +0,0 @@
|
|||
The quick brown
|
||||
fox jumps over
|
||||
the lazy dog
|
||||
|
||||
|
||||
|
||||
The-quick brown
|
||||
|
||||
over
|
||||
the lazy dog
|
||||
|
|
@ -1 +0,0 @@
|
|||
8,0
|
|
@ -1 +0,0 @@
|
|||
"Insert"
|
|
@ -1,12 +0,0 @@
|
|||
The quick brown
|
||||
fox jumps over
|
||||
the lazy dog
|
||||
|
||||
|
||||
|
||||
The-quick brown
|
||||
|
||||
|
||||
over
|
||||
the lazy dog
|
||||
|
|
@ -1 +0,0 @@
|
|||
9,0
|
|
@ -1 +0,0 @@
|
|||
"Insert"
|
|
@ -1,12 +0,0 @@
|
|||
The quick brown
|
||||
fox jumps over
|
||||
the lazy dog
|
||||
|
||||
|
||||
|
||||
The-quick brown
|
||||
|
||||
|
||||
over
|
||||
the lazy dog
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
The quick brown
|
||||
fox over
|
||||
the lazy dog
|
||||
|
||||
|
||||
|
||||
The-quick brown
|
||||
|
||||
|
||||
fox-jumps over
|
||||
the lazy dog
|
||||
|
|
@ -1 +0,0 @@
|
|||
9,2
|
|
@ -1 +0,0 @@
|
|||
"Insert"
|
|
@ -1,11 +0,0 @@
|
|||
The quick brown
|
||||
fox jumps over
|
||||
the lazy dog
|
||||
|
||||
|
||||
|
||||
The-quick brown
|
||||
|
||||
|
||||
fox-jumps over
|
||||
the lazy dog
|
|
@ -1 +0,0 @@
|
|||
10,12
|
|
@ -1 +0,0 @@
|
|||
"Insert"
|
|
@ -1,11 +0,0 @@
|
|||
The quick brown
|
||||
fox jumps over
|
||||
the lazy dog
|
||||
|
||||
|
||||
|
||||
The-quick brown
|
||||
|
||||
|
||||
fox-jumps over
|
||||
the lazy dog
|
|
@ -1 +0,0 @@
|
|||
11,0
|
|
@ -1 +0,0 @@
|
|||
"Insert"
|
|
@ -1 +0,0 @@
|
|||
1,4
|
|
@ -1 +0,0 @@
|
|||
"Insert"
|
|
@ -1,12 +0,0 @@
|
|||
The quick brown
|
||||
fox jumps
|
||||
the lazy dog
|
||||
|
||||
|
||||
|
||||
The-quick brown
|
||||
|
||||
|
||||
fox-jumps over
|
||||
the lazy dog
|
||||
|
|
@ -1 +0,0 @@
|
|||
1,9
|
|
@ -1 +0,0 @@
|
|||
"Insert"
|
|
@ -1,11 +0,0 @@
|
|||
The quick brown
|
||||
fox jumps over
|
||||
the lazy dog
|
||||
|
||||
|
||||
The-quick brown
|
||||
|
||||
|
||||
fox-jumps over
|
||||
the lazy dog
|
||||
|
|
@ -1 +0,0 @@
|
|||
2,12
|
|
@ -1 +0,0 @@
|
|||
0,10
|
|
@ -1 +0,0 @@
|
|||
"Insert"
|
|
@ -1,11 +0,0 @@
|
|||
The quick brown
|
||||
fox jumps over
|
||||
the lazy dog
|
||||
|
||||
|
||||
The-quick brown
|
||||
|
||||
|
||||
fox-jumps over
|
||||
the lazy dog
|
||||
|
|
@ -1 +0,0 @@
|
|||
3,0
|
|
@ -1 +0,0 @@
|
|||
"Insert"
|
|
@ -1,11 +0,0 @@
|
|||
The quick brown
|
||||
fox jumps over
|
||||
the lazy dog
|
||||
|
||||
|
||||
The-quick brown
|
||||
|
||||
|
||||
fox-jumps over
|
||||
the lazy dog
|
||||
|
|
@ -1 +0,0 @@
|
|||
4,0
|
|
@ -1 +0,0 @@
|
|||
"Insert"
|
|
@ -1,11 +0,0 @@
|
|||
The quick brown
|
||||
fox jumps over
|
||||
the lazy dog
|
||||
|
||||
|
||||
-quick brown
|
||||
|
||||
|
||||
fox-jumps over
|
||||
the lazy dog
|
||||
|
|
@ -1 +0,0 @@
|
|||
5,0
|
|
@ -1 +0,0 @@
|
|||
"Insert"
|
|
@ -1 +0,0 @@
|
|||
"Insert"
|
|
@ -1,12 +0,0 @@
|
|||
The quick brown
|
||||
fox jumps over
|
||||
the lazy dog
|
||||
|
||||
|
||||
|
||||
-quick brown
|
||||
|
||||
|
||||
fox-jumps over
|
||||
the lazy dog
|
||||
|
|
@ -1 +0,0 @@
|
|||
6,0
|
|
@ -1 +0,0 @@
|
|||
"Insert"
|
|
@ -1,12 +0,0 @@
|
|||
The quick brown
|
||||
fox jumps over
|
||||
the lazy dog
|
||||
|
||||
|
||||
|
||||
Thequick brown
|
||||
|
||||
|
||||
fox-jumps over
|
||||
the lazy dog
|
||||
|
|
@ -1 +0,0 @@
|
|||
6,3
|
|
@ -1 +0,0 @@
|
|||
"Insert"
|
|
@ -1,12 +0,0 @@
|
|||
The quick brown
|
||||
fox jumps over
|
||||
the lazy dog
|
||||
|
||||
|
||||
|
||||
The-brown
|
||||
|
||||
|
||||
fox-jumps over
|
||||
the lazy dog
|
||||
|
|
@ -1 +0,0 @@
|
|||
6,4
|
|
@ -1 +0,0 @@
|
|||
"Insert"
|
|
@ -1,12 +0,0 @@
|
|||
The quick brown
|
||||
fox jumps over
|
||||
the lazy dog
|
||||
|
||||
|
||||
|
||||
The-brown
|
||||
|
||||
|
||||
fox-jumps over
|
||||
the lazy dog
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
The quick
|
||||
fox jumps over
|
||||
the lazy dog
|
||||
|
||||
|
||||
|
||||
The-quick brown
|
||||
|
||||
|
||||
fox-jumps over
|
||||
the lazy dog
|
||||
|
|
@ -1 +0,0 @@
|
|||
6,4
|
|
@ -1 +0,0 @@
|
|||
"Insert"
|
|
@ -1,12 +0,0 @@
|
|||
The quick brown
|
||||
fox jumps over
|
||||
the lazy dog
|
||||
|
||||
|
||||
|
||||
The-quick
|
||||
|
||||
|
||||
fox-jumps over
|
||||
the lazy dog
|
||||
|
|
@ -1 +0,0 @@
|
|||
6,9
|
|
@ -1 +0,0 @@
|
|||
"Insert"
|
|
@ -1,12 +0,0 @@
|
|||
The quick brown
|
||||
fox jumps over
|
||||
the lazy dog
|
||||
|
||||
|
||||
|
||||
The-quick
|
||||
|
||||
|
||||
fox-jumps over
|
||||
the lazy dog
|
||||
|
|
@ -1 +0,0 @@
|
|||
6,10
|
|
@ -1 +0,0 @@
|
|||
"Insert"
|
|
@ -1,9 +0,0 @@
|
|||
The quick brown
|
||||
fox jumps over
|
||||
the lazy dog
|
||||
|
||||
|
||||
|
||||
The-quick brown-jumps over
|
||||
the lazy dog
|
||||
|
|
@ -1 +0,0 @@
|
|||
6,15
|
|
@ -1 +0,0 @@
|
|||
0,10
|
|
@ -1 +0,0 @@
|
|||
"Insert"
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue