mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-29 14:44:56 +03:00
test/: Add more tests for object selection corner cases
This commit is contained in:
parent
1371148588
commit
c8f5935c48
1
test/normal/object/around-parent/angle/cmd
Normal file
1
test/normal/object/around-parent/angle/cmd
Normal file
@ -0,0 +1 @@
|
||||
<a-a>a
|
1
test/normal/object/around-parent/angle/in
Normal file
1
test/normal/object/around-parent/angle/in
Normal file
@ -0,0 +1 @@
|
||||
<foo %(<foo>) >
|
1
test/normal/object/around-parent/angle/selections
Normal file
1
test/normal/object/around-parent/angle/selections
Normal file
@ -0,0 +1 @@
|
||||
<foo <foo> >
|
1
test/normal/object/around-parent/braces/cmd
Normal file
1
test/normal/object/around-parent/braces/cmd
Normal file
@ -0,0 +1 @@
|
||||
<a-a>B
|
3
test/normal/object/around-parent/braces/in
Normal file
3
test/normal/object/around-parent/braces/in
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"foo": %({ "bar" })
|
||||
}
|
3
test/normal/object/around-parent/braces/selections
Normal file
3
test/normal/object/around-parent/braces/selections
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"foo"\: { "bar" }
|
||||
}
|
1
test/normal/object/around-parent/brackets/cmd
Normal file
1
test/normal/object/around-parent/brackets/cmd
Normal file
@ -0,0 +1 @@
|
||||
<a-a>r
|
3
test/normal/object/around-parent/brackets/in
Normal file
3
test/normal/object/around-parent/brackets/in
Normal file
@ -0,0 +1,3 @@
|
||||
[
|
||||
%(["foo"])
|
||||
]
|
3
test/normal/object/around-parent/brackets/selections
Normal file
3
test/normal/object/around-parent/brackets/selections
Normal file
@ -0,0 +1,3 @@
|
||||
[
|
||||
["foo"]
|
||||
]
|
1
test/normal/object/around-parent/parenthesis/cmd
Normal file
1
test/normal/object/around-parent/parenthesis/cmd
Normal file
@ -0,0 +1 @@
|
||||
L<a-a>b
|
1
test/normal/object/around-parent/parenthesis/in
Normal file
1
test/normal/object/around-parent/parenthesis/in
Normal file
@ -0,0 +1 @@
|
||||
(foo%((bar)))
|
1
test/normal/object/around-parent/parenthesis/selections
Normal file
1
test/normal/object/around-parent/parenthesis/selections
Normal file
@ -0,0 +1 @@
|
||||
(foo(bar))
|
1
test/normal/object/on-end/around/angle/cmd
Normal file
1
test/normal/object/on-end/around/angle/cmd
Normal file
@ -0,0 +1 @@
|
||||
<a-a>a
|
1
test/normal/object/on-end/around/angle/in
Normal file
1
test/normal/object/on-end/around/angle/in
Normal file
@ -0,0 +1 @@
|
||||
#include <foo%(>)
|
1
test/normal/object/on-end/around/angle/selections
Normal file
1
test/normal/object/on-end/around/angle/selections
Normal file
@ -0,0 +1 @@
|
||||
<foo>
|
1
test/normal/object/on-end/around/braces/cmd
Normal file
1
test/normal/object/on-end/around/braces/cmd
Normal file
@ -0,0 +1 @@
|
||||
<a-a>B
|
3
test/normal/object/on-end/around/braces/in
Normal file
3
test/normal/object/on-end/around/braces/in
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"foo": "bar"
|
||||
%(})
|
3
test/normal/object/on-end/around/braces/selections
Normal file
3
test/normal/object/on-end/around/braces/selections
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"foo"\: "bar"
|
||||
}
|
1
test/normal/object/on-end/around/brackets/cmd
Normal file
1
test/normal/object/on-end/around/brackets/cmd
Normal file
@ -0,0 +1 @@
|
||||
<a-a>r
|
3
test/normal/object/on-end/around/brackets/in
Normal file
3
test/normal/object/on-end/around/brackets/in
Normal file
@ -0,0 +1,3 @@
|
||||
[
|
||||
"foo"
|
||||
%(])
|
3
test/normal/object/on-end/around/brackets/selections
Normal file
3
test/normal/object/on-end/around/brackets/selections
Normal file
@ -0,0 +1,3 @@
|
||||
[
|
||||
"foo"
|
||||
]
|
1
test/normal/object/on-end/around/parenthesis/cmd
Normal file
1
test/normal/object/on-end/around/parenthesis/cmd
Normal file
@ -0,0 +1 @@
|
||||
l<a-a>b
|
1
test/normal/object/on-end/around/parenthesis/in
Normal file
1
test/normal/object/on-end/around/parenthesis/in
Normal file
@ -0,0 +1 @@
|
||||
foo(ba%(r))
|
1
test/normal/object/on-end/around/parenthesis/selections
Normal file
1
test/normal/object/on-end/around/parenthesis/selections
Normal file
@ -0,0 +1 @@
|
||||
(bar)
|
1
test/normal/object/on-end/inner/angle/cmd
Normal file
1
test/normal/object/on-end/inner/angle/cmd
Normal file
@ -0,0 +1 @@
|
||||
<a-i>a
|
1
test/normal/object/on-end/inner/angle/in
Normal file
1
test/normal/object/on-end/inner/angle/in
Normal file
@ -0,0 +1 @@
|
||||
#include <foo%(>)
|
1
test/normal/object/on-end/inner/angle/selections
Normal file
1
test/normal/object/on-end/inner/angle/selections
Normal file
@ -0,0 +1 @@
|
||||
foo
|
1
test/normal/object/on-end/inner/braces/cmd
Normal file
1
test/normal/object/on-end/inner/braces/cmd
Normal file
@ -0,0 +1 @@
|
||||
<a-a>B
|
3
test/normal/object/on-end/inner/braces/in
Normal file
3
test/normal/object/on-end/inner/braces/in
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"foo"= "bar"
|
||||
%(})
|
3
test/normal/object/on-end/inner/braces/selections
Normal file
3
test/normal/object/on-end/inner/braces/selections
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"foo"= "bar"
|
||||
}
|
1
test/normal/object/on-end/inner/brackets/cmd
Normal file
1
test/normal/object/on-end/inner/brackets/cmd
Normal file
@ -0,0 +1 @@
|
||||
<a-a>r
|
3
test/normal/object/on-end/inner/brackets/in
Normal file
3
test/normal/object/on-end/inner/brackets/in
Normal file
@ -0,0 +1,3 @@
|
||||
[
|
||||
"foo"
|
||||
%(])
|
3
test/normal/object/on-end/inner/brackets/selections
Normal file
3
test/normal/object/on-end/inner/brackets/selections
Normal file
@ -0,0 +1,3 @@
|
||||
[
|
||||
"foo"
|
||||
]
|
1
test/normal/object/on-end/inner/parenthesis/cmd
Normal file
1
test/normal/object/on-end/inner/parenthesis/cmd
Normal file
@ -0,0 +1 @@
|
||||
l<a-i>b
|
1
test/normal/object/on-end/inner/parenthesis/in
Normal file
1
test/normal/object/on-end/inner/parenthesis/in
Normal file
@ -0,0 +1 @@
|
||||
foo(ba%(r))
|
1
test/normal/object/on-end/inner/parenthesis/selections
Normal file
1
test/normal/object/on-end/inner/parenthesis/selections
Normal file
@ -0,0 +1 @@
|
||||
bar
|
1
test/normal/object/on-end/to-end/angle/cmd
Normal file
1
test/normal/object/on-end/to-end/angle/cmd
Normal file
@ -0,0 +1 @@
|
||||
]a
|
1
test/normal/object/on-end/to-end/angle/in
Normal file
1
test/normal/object/on-end/to-end/angle/in
Normal file
@ -0,0 +1 @@
|
||||
<foo <bar%(>) >
|
1
test/normal/object/on-end/to-end/angle/selections
Normal file
1
test/normal/object/on-end/to-end/angle/selections
Normal file
@ -0,0 +1 @@
|
||||
> >
|
1
test/normal/object/on-end/to-end/braces/cmd
Normal file
1
test/normal/object/on-end/to-end/braces/cmd
Normal file
@ -0,0 +1 @@
|
||||
]B
|
3
test/normal/object/on-end/to-end/braces/in
Normal file
3
test/normal/object/on-end/to-end/braces/in
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
{ "foo": "bar" %(})
|
||||
}
|
2
test/normal/object/on-end/to-end/braces/selections
Normal file
2
test/normal/object/on-end/to-end/braces/selections
Normal file
@ -0,0 +1,2 @@
|
||||
}
|
||||
}
|
1
test/normal/object/on-end/to-end/brackets/cmd
Normal file
1
test/normal/object/on-end/to-end/brackets/cmd
Normal file
@ -0,0 +1 @@
|
||||
]r
|
3
test/normal/object/on-end/to-end/brackets/in
Normal file
3
test/normal/object/on-end/to-end/brackets/in
Normal file
@ -0,0 +1,3 @@
|
||||
[
|
||||
["foo"%(])
|
||||
]
|
2
test/normal/object/on-end/to-end/brackets/selections
Normal file
2
test/normal/object/on-end/to-end/brackets/selections
Normal file
@ -0,0 +1,2 @@
|
||||
]
|
||||
]
|
1
test/normal/object/on-end/to-end/parenthesis/cmd
Normal file
1
test/normal/object/on-end/to-end/parenthesis/cmd
Normal file
@ -0,0 +1 @@
|
||||
l]b
|
1
test/normal/object/on-end/to-end/parenthesis/in
Normal file
1
test/normal/object/on-end/to-end/parenthesis/in
Normal file
@ -0,0 +1 @@
|
||||
(foo(ba%(r)))
|
1
test/normal/object/on-end/to-end/parenthesis/selections
Normal file
1
test/normal/object/on-end/to-end/parenthesis/selections
Normal file
@ -0,0 +1 @@
|
||||
))
|
1
test/normal/object/on-start/around/angle/cmd
Normal file
1
test/normal/object/on-start/around/angle/cmd
Normal file
@ -0,0 +1 @@
|
||||
<a-a>a
|
1
test/normal/object/on-start/around/angle/in
Normal file
1
test/normal/object/on-start/around/angle/in
Normal file
@ -0,0 +1 @@
|
||||
#include %(<)foo>
|
1
test/normal/object/on-start/around/angle/selections
Normal file
1
test/normal/object/on-start/around/angle/selections
Normal file
@ -0,0 +1 @@
|
||||
<foo>
|
1
test/normal/object/on-start/around/braces/cmd
Normal file
1
test/normal/object/on-start/around/braces/cmd
Normal file
@ -0,0 +1 @@
|
||||
<a-a>B
|
3
test/normal/object/on-start/around/braces/in
Normal file
3
test/normal/object/on-start/around/braces/in
Normal file
@ -0,0 +1,3 @@
|
||||
%({)
|
||||
"foo": "bar"
|
||||
}
|
3
test/normal/object/on-start/around/braces/selections
Normal file
3
test/normal/object/on-start/around/braces/selections
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"foo"\: "bar"
|
||||
}
|
1
test/normal/object/on-start/around/brackets/cmd
Normal file
1
test/normal/object/on-start/around/brackets/cmd
Normal file
@ -0,0 +1 @@
|
||||
<a-a>r
|
3
test/normal/object/on-start/around/brackets/in
Normal file
3
test/normal/object/on-start/around/brackets/in
Normal file
@ -0,0 +1,3 @@
|
||||
%([)
|
||||
"foo"
|
||||
]
|
3
test/normal/object/on-start/around/brackets/selections
Normal file
3
test/normal/object/on-start/around/brackets/selections
Normal file
@ -0,0 +1,3 @@
|
||||
[
|
||||
"foo"
|
||||
]
|
1
test/normal/object/on-start/around/double_quote/cmd
Normal file
1
test/normal/object/on-start/around/double_quote/cmd
Normal file
@ -0,0 +1 @@
|
||||
<a-a>Q
|
1
test/normal/object/on-start/around/double_quote/in
Normal file
1
test/normal/object/on-start/around/double_quote/in
Normal file
@ -0,0 +1 @@
|
||||
foo(%(")bar")
|
@ -0,0 +1 @@
|
||||
"bar"
|
1
test/normal/object/on-start/around/grave_quote/cmd
Normal file
1
test/normal/object/on-start/around/grave_quote/cmd
Normal file
@ -0,0 +1 @@
|
||||
<a-a>g
|
1
test/normal/object/on-start/around/grave_quote/in
Normal file
1
test/normal/object/on-start/around/grave_quote/in
Normal file
@ -0,0 +1 @@
|
||||
echo %(`)foo`
|
@ -0,0 +1 @@
|
||||
`foo`
|
1
test/normal/object/on-start/around/parenthesis/cmd
Normal file
1
test/normal/object/on-start/around/parenthesis/cmd
Normal file
@ -0,0 +1 @@
|
||||
<a-a>b
|
1
test/normal/object/on-start/around/parenthesis/in
Normal file
1
test/normal/object/on-start/around/parenthesis/in
Normal file
@ -0,0 +1 @@
|
||||
foo%(()bar)
|
@ -0,0 +1 @@
|
||||
(bar)
|
1
test/normal/object/on-start/around/single_quote/cmd
Normal file
1
test/normal/object/on-start/around/single_quote/cmd
Normal file
@ -0,0 +1 @@
|
||||
<a-a>q
|
1
test/normal/object/on-start/around/single_quote/in
Normal file
1
test/normal/object/on-start/around/single_quote/in
Normal file
@ -0,0 +1 @@
|
||||
foo(%(')bar')
|
@ -0,0 +1 @@
|
||||
'bar'
|
1
test/normal/object/on-start/around/slash/cmd
Normal file
1
test/normal/object/on-start/around/slash/cmd
Normal file
@ -0,0 +1 @@
|
||||
<a-a>/
|
1
test/normal/object/on-start/around/slash/in
Normal file
1
test/normal/object/on-start/around/slash/in
Normal file
@ -0,0 +1 @@
|
||||
foo(%(/)bar/)
|
1
test/normal/object/on-start/around/slash/selections
Normal file
1
test/normal/object/on-start/around/slash/selections
Normal file
@ -0,0 +1 @@
|
||||
/bar/
|
1
test/normal/object/on-start/inner/angle/cmd
Normal file
1
test/normal/object/on-start/inner/angle/cmd
Normal file
@ -0,0 +1 @@
|
||||
<a-i>a
|
1
test/normal/object/on-start/inner/angle/in
Normal file
1
test/normal/object/on-start/inner/angle/in
Normal file
@ -0,0 +1 @@
|
||||
#include %(<)foo>
|
1
test/normal/object/on-start/inner/angle/selections
Normal file
1
test/normal/object/on-start/inner/angle/selections
Normal file
@ -0,0 +1 @@
|
||||
foo
|
1
test/normal/object/on-start/inner/braces/cmd
Normal file
1
test/normal/object/on-start/inner/braces/cmd
Normal file
@ -0,0 +1 @@
|
||||
<a-a>B
|
3
test/normal/object/on-start/inner/braces/in
Normal file
3
test/normal/object/on-start/inner/braces/in
Normal file
@ -0,0 +1,3 @@
|
||||
%({)
|
||||
"foo"= "bar"
|
||||
}
|
3
test/normal/object/on-start/inner/braces/selections
Normal file
3
test/normal/object/on-start/inner/braces/selections
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"foo"= "bar"
|
||||
}
|
1
test/normal/object/on-start/inner/brackets/cmd
Normal file
1
test/normal/object/on-start/inner/brackets/cmd
Normal file
@ -0,0 +1 @@
|
||||
<a-a>r
|
3
test/normal/object/on-start/inner/brackets/in
Normal file
3
test/normal/object/on-start/inner/brackets/in
Normal file
@ -0,0 +1,3 @@
|
||||
%([)
|
||||
"foo"
|
||||
]
|
3
test/normal/object/on-start/inner/brackets/selections
Normal file
3
test/normal/object/on-start/inner/brackets/selections
Normal file
@ -0,0 +1,3 @@
|
||||
[
|
||||
"foo"
|
||||
]
|
1
test/normal/object/on-start/inner/double_quote/cmd
Normal file
1
test/normal/object/on-start/inner/double_quote/cmd
Normal file
@ -0,0 +1 @@
|
||||
<a-i>Q
|
1
test/normal/object/on-start/inner/double_quote/in
Normal file
1
test/normal/object/on-start/inner/double_quote/in
Normal file
@ -0,0 +1 @@
|
||||
foo(%(")bar")
|
@ -0,0 +1 @@
|
||||
bar
|
1
test/normal/object/on-start/inner/grave_quote/cmd
Normal file
1
test/normal/object/on-start/inner/grave_quote/cmd
Normal file
@ -0,0 +1 @@
|
||||
<a-i>g
|
1
test/normal/object/on-start/inner/grave_quote/in
Normal file
1
test/normal/object/on-start/inner/grave_quote/in
Normal file
@ -0,0 +1 @@
|
||||
echo %(`)foo`
|
1
test/normal/object/on-start/inner/grave_quote/selections
Normal file
1
test/normal/object/on-start/inner/grave_quote/selections
Normal file
@ -0,0 +1 @@
|
||||
foo
|
1
test/normal/object/on-start/inner/parenthesis/cmd
Normal file
1
test/normal/object/on-start/inner/parenthesis/cmd
Normal file
@ -0,0 +1 @@
|
||||
<a-i>b
|
1
test/normal/object/on-start/inner/parenthesis/in
Normal file
1
test/normal/object/on-start/inner/parenthesis/in
Normal file
@ -0,0 +1 @@
|
||||
foo%(()bar)
|
1
test/normal/object/on-start/inner/parenthesis/selections
Normal file
1
test/normal/object/on-start/inner/parenthesis/selections
Normal file
@ -0,0 +1 @@
|
||||
bar
|
1
test/normal/object/on-start/inner/single_quote/cmd
Normal file
1
test/normal/object/on-start/inner/single_quote/cmd
Normal file
@ -0,0 +1 @@
|
||||
<a-i>q
|
1
test/normal/object/on-start/inner/single_quote/in
Normal file
1
test/normal/object/on-start/inner/single_quote/in
Normal file
@ -0,0 +1 @@
|
||||
foo(%(')bar')
|
@ -0,0 +1 @@
|
||||
bar
|
1
test/normal/object/on-start/to-start/angle/cmd
Normal file
1
test/normal/object/on-start/to-start/angle/cmd
Normal file
@ -0,0 +1 @@
|
||||
[a
|
1
test/normal/object/on-start/to-start/angle/in
Normal file
1
test/normal/object/on-start/to-start/angle/in
Normal file
@ -0,0 +1 @@
|
||||
<foo %(<)bar> >
|
1
test/normal/object/on-start/to-start/angle/selections
Normal file
1
test/normal/object/on-start/to-start/angle/selections
Normal file
@ -0,0 +1 @@
|
||||
<foo <
|
1
test/normal/object/on-start/to-start/braces/cmd
Normal file
1
test/normal/object/on-start/to-start/braces/cmd
Normal file
@ -0,0 +1 @@
|
||||
[B
|
3
test/normal/object/on-start/to-start/braces/in
Normal file
3
test/normal/object/on-start/to-start/braces/in
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
%({) "foo": "bar" }
|
||||
}
|
2
test/normal/object/on-start/to-start/braces/selections
Normal file
2
test/normal/object/on-start/to-start/braces/selections
Normal file
@ -0,0 +1,2 @@
|
||||
{
|
||||
{
|
1
test/normal/object/on-start/to-start/brackets/cmd
Normal file
1
test/normal/object/on-start/to-start/brackets/cmd
Normal file
@ -0,0 +1 @@
|
||||
[r
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user