Add tests.
Probably overkill, but at least this is comprehensive . . .
This commit is contained in:
parent
b2459f5ecb
commit
c5dd013235
1
test/indent/sh/deindent-after-done/cmd
Normal file
1
test/indent/sh/deindent-after-done/cmd
Normal file
|
@ -0,0 +1 @@
|
|||
gei<ret>
|
3
test/indent/sh/deindent-after-done/in
Normal file
3
test/indent/sh/deindent-after-done/in
Normal file
|
@ -0,0 +1,3 @@
|
|||
while true; do
|
||||
thing1
|
||||
done
|
4
test/indent/sh/deindent-after-done/out
Normal file
4
test/indent/sh/deindent-after-done/out
Normal file
|
@ -0,0 +1,4 @@
|
|||
while true; do
|
||||
thing1
|
||||
done
|
||||
|
3
test/indent/sh/deindent-after-done/rc
Normal file
3
test/indent/sh/deindent-after-done/rc
Normal file
|
@ -0,0 +1,3 @@
|
|||
source "%val{runtime}/colors/default.kak"
|
||||
source "%val{runtime}/rc/filetype/sh.kak"
|
||||
set buffer filetype sh
|
5
test/indent/sh/deindent-after-esac/in
Normal file
5
test/indent/sh/deindent-after-esac/in
Normal file
|
@ -0,0 +1,5 @@
|
|||
case $foo in
|
||||
bar)
|
||||
thing1
|
||||
thing2
|
||||
;;
|
6
test/indent/sh/deindent-after-esac/out
Normal file
6
test/indent/sh/deindent-after-esac/out
Normal file
|
@ -0,0 +1,6 @@
|
|||
case $foo in
|
||||
bar)
|
||||
thing1
|
||||
thing2
|
||||
;;
|
||||
esac
|
3
test/indent/sh/deindent-after-esac/rc
Normal file
3
test/indent/sh/deindent-after-esac/rc
Normal file
|
@ -0,0 +1,3 @@
|
|||
source "%val{runtime}/colors/default.kak"
|
||||
source "%val{runtime}/rc/filetype/sh.kak"
|
||||
set buffer filetype sh
|
1
test/indent/sh/deindent-after-fi/cmd
Normal file
1
test/indent/sh/deindent-after-fi/cmd
Normal file
|
@ -0,0 +1 @@
|
|||
gei<ret>fi<ret>
|
2
test/indent/sh/deindent-after-fi/in
Normal file
2
test/indent/sh/deindent-after-fi/in
Normal file
|
@ -0,0 +1,2 @@
|
|||
if [ $foo ]; then
|
||||
thing1
|
4
test/indent/sh/deindent-after-fi/out
Normal file
4
test/indent/sh/deindent-after-fi/out
Normal file
|
@ -0,0 +1,4 @@
|
|||
if [ $foo ]; then
|
||||
thing1
|
||||
fi
|
||||
|
3
test/indent/sh/deindent-after-fi/rc
Normal file
3
test/indent/sh/deindent-after-fi/rc
Normal file
|
@ -0,0 +1,3 @@
|
|||
source "%val{runtime}/colors/default.kak"
|
||||
source "%val{runtime}/rc/filetype/sh.kak"
|
||||
set buffer filetype sh
|
1
test/indent/sh/deindent-case-option/cmd
Normal file
1
test/indent/sh/deindent-case-option/cmd
Normal file
|
@ -0,0 +1 @@
|
|||
gei<ret>;;<ret>*)
|
5
test/indent/sh/deindent-case-option/in
Normal file
5
test/indent/sh/deindent-case-option/in
Normal file
|
@ -0,0 +1,5 @@
|
|||
case $foo in
|
||||
bar) thing1;;
|
||||
baz)
|
||||
thing1
|
||||
thing2
|
7
test/indent/sh/deindent-case-option/out
Normal file
7
test/indent/sh/deindent-case-option/out
Normal file
|
@ -0,0 +1,7 @@
|
|||
case $foo in
|
||||
bar) thing1;;
|
||||
baz)
|
||||
thing1
|
||||
thing2
|
||||
;;
|
||||
*)
|
3
test/indent/sh/deindent-case-option/rc
Normal file
3
test/indent/sh/deindent-case-option/rc
Normal file
|
@ -0,0 +1,3 @@
|
|||
source "%val{runtime}/colors/default.kak"
|
||||
source "%val{runtime}/rc/filetype/sh.kak"
|
||||
set buffer filetype sh
|
1
test/indent/sh/deindent-compound-command/cmd
Normal file
1
test/indent/sh/deindent-compound-command/cmd
Normal file
|
@ -0,0 +1 @@
|
|||
gei<ret>
|
3
test/indent/sh/deindent-compound-command/in
Normal file
3
test/indent/sh/deindent-compound-command/in
Normal file
|
@ -0,0 +1,3 @@
|
|||
foo () {
|
||||
thing1
|
||||
}
|
4
test/indent/sh/deindent-compound-command/out
Normal file
4
test/indent/sh/deindent-compound-command/out
Normal file
|
@ -0,0 +1,4 @@
|
|||
foo () {
|
||||
thing1
|
||||
}
|
||||
|
3
test/indent/sh/deindent-compound-command/rc
Normal file
3
test/indent/sh/deindent-compound-command/rc
Normal file
|
@ -0,0 +1,3 @@
|
|||
source "%val{runtime}/colors/default.kak"
|
||||
source "%val{runtime}/rc/filetype/sh.kak"
|
||||
set buffer filetype sh
|
1
test/indent/sh/deindent-one-line-case-option/cmd
Normal file
1
test/indent/sh/deindent-one-line-case-option/cmd
Normal file
|
@ -0,0 +1 @@
|
|||
gei<ret>baz)
|
2
test/indent/sh/deindent-one-line-case-option/in
Normal file
2
test/indent/sh/deindent-one-line-case-option/in
Normal file
|
@ -0,0 +1,2 @@
|
|||
case $foo in
|
||||
bar) thing1;;
|
3
test/indent/sh/deindent-one-line-case-option/out
Normal file
3
test/indent/sh/deindent-one-line-case-option/out
Normal file
|
@ -0,0 +1,3 @@
|
|||
case $foo in
|
||||
bar) thing1;;
|
||||
baz)
|
3
test/indent/sh/deindent-one-line-case-option/rc
Normal file
3
test/indent/sh/deindent-one-line-case-option/rc
Normal file
|
@ -0,0 +1,3 @@
|
|||
source "%val{runtime}/colors/default.kak"
|
||||
source "%val{runtime}/rc/filetype/sh.kak"
|
||||
set buffer filetype sh
|
1
test/indent/sh/deindent-only-else/cmd
Normal file
1
test/indent/sh/deindent-only-else/cmd
Normal file
|
@ -0,0 +1 @@
|
|||
gei<ret>baz
|
3
test/indent/sh/deindent-only-else/in
Normal file
3
test/indent/sh/deindent-only-else/in
Normal file
|
@ -0,0 +1,3 @@
|
|||
if [ $foo ]; then
|
||||
bar
|
||||
else
|
4
test/indent/sh/deindent-only-else/out
Normal file
4
test/indent/sh/deindent-only-else/out
Normal file
|
@ -0,0 +1,4 @@
|
|||
if [ $foo ]; then
|
||||
bar
|
||||
else
|
||||
baz
|
3
test/indent/sh/deindent-only-else/rc
Normal file
3
test/indent/sh/deindent-only-else/rc
Normal file
|
@ -0,0 +1,3 @@
|
|||
source "%val{runtime}/colors/default.kak"
|
||||
source "%val{runtime}/rc/filetype/sh.kak"
|
||||
set buffer filetype sh
|
1
test/indent/sh/indent-after-do/cmd
Normal file
1
test/indent/sh/indent-after-do/cmd
Normal file
|
@ -0,0 +1 @@
|
|||
gei<ret>thing1
|
1
test/indent/sh/indent-after-do/in
Normal file
1
test/indent/sh/indent-after-do/in
Normal file
|
@ -0,0 +1 @@
|
|||
while true; do
|
2
test/indent/sh/indent-after-do/out
Normal file
2
test/indent/sh/indent-after-do/out
Normal file
|
@ -0,0 +1,2 @@
|
|||
while true; do
|
||||
thing1
|
3
test/indent/sh/indent-after-do/rc
Normal file
3
test/indent/sh/indent-after-do/rc
Normal file
|
@ -0,0 +1,3 @@
|
|||
source "%val{runtime}/colors/default.kak"
|
||||
source "%val{runtime}/rc/filetype/sh.kak"
|
||||
set buffer filetype sh
|
1
test/indent/sh/indent-after-in/cmd
Normal file
1
test/indent/sh/indent-after-in/cmd
Normal file
|
@ -0,0 +1 @@
|
|||
gei<ret>bar)
|
1
test/indent/sh/indent-after-in/in
Normal file
1
test/indent/sh/indent-after-in/in
Normal file
|
@ -0,0 +1 @@
|
|||
case $foo in
|
2
test/indent/sh/indent-after-in/out
Normal file
2
test/indent/sh/indent-after-in/out
Normal file
|
@ -0,0 +1,2 @@
|
|||
case $foo in
|
||||
bar)
|
3
test/indent/sh/indent-after-in/rc
Normal file
3
test/indent/sh/indent-after-in/rc
Normal file
|
@ -0,0 +1,3 @@
|
|||
source "%val{runtime}/colors/default.kak"
|
||||
source "%val{runtime}/rc/filetype/sh.kak"
|
||||
set buffer filetype sh
|
1
test/indent/sh/indent-after-then/cmd
Normal file
1
test/indent/sh/indent-after-then/cmd
Normal file
|
@ -0,0 +1 @@
|
|||
gei<ret>thing1
|
1
test/indent/sh/indent-after-then/in
Normal file
1
test/indent/sh/indent-after-then/in
Normal file
|
@ -0,0 +1 @@
|
|||
if [ $foo ]; then
|
2
test/indent/sh/indent-after-then/out
Normal file
2
test/indent/sh/indent-after-then/out
Normal file
|
@ -0,0 +1,2 @@
|
|||
if [ $foo ]; then
|
||||
thing1
|
3
test/indent/sh/indent-after-then/rc
Normal file
3
test/indent/sh/indent-after-then/rc
Normal file
|
@ -0,0 +1,3 @@
|
|||
source "%val{runtime}/colors/default.kak"
|
||||
source "%val{runtime}/rc/filetype/sh.kak"
|
||||
set buffer filetype sh
|
1
test/indent/sh/indent-block-case/cmd
Normal file
1
test/indent/sh/indent-block-case/cmd
Normal file
|
@ -0,0 +1 @@
|
|||
gei<ret>thing1<ret>thing2
|
3
test/indent/sh/indent-block-case/in
Normal file
3
test/indent/sh/indent-block-case/in
Normal file
|
@ -0,0 +1,3 @@
|
|||
case $foo in
|
||||
bar) thing1;;
|
||||
baz)
|
5
test/indent/sh/indent-block-case/out
Normal file
5
test/indent/sh/indent-block-case/out
Normal file
|
@ -0,0 +1,5 @@
|
|||
case $foo in
|
||||
bar) thing1;;
|
||||
baz)
|
||||
thing1
|
||||
thing2
|
3
test/indent/sh/indent-block-case/rc
Normal file
3
test/indent/sh/indent-block-case/rc
Normal file
|
@ -0,0 +1,3 @@
|
|||
source "%val{runtime}/colors/default.kak"
|
||||
source "%val{runtime}/rc/filetype/sh.kak"
|
||||
set buffer filetype sh
|
1
test/indent/sh/indent-compound-command/cmd
Normal file
1
test/indent/sh/indent-compound-command/cmd
Normal file
|
@ -0,0 +1 @@
|
|||
gei<ret>thing1
|
1
test/indent/sh/indent-compound-command/in
Normal file
1
test/indent/sh/indent-compound-command/in
Normal file
|
@ -0,0 +1 @@
|
|||
foo () {
|
2
test/indent/sh/indent-compound-command/out
Normal file
2
test/indent/sh/indent-compound-command/out
Normal file
|
@ -0,0 +1,2 @@
|
|||
foo () {
|
||||
thing1
|
3
test/indent/sh/indent-compound-command/rc
Normal file
3
test/indent/sh/indent-compound-command/rc
Normal file
|
@ -0,0 +1,3 @@
|
|||
source "%val{runtime}/colors/default.kak"
|
||||
source "%val{runtime}/rc/filetype/sh.kak"
|
||||
set buffer filetype sh
|
Loading…
Reference in New Issue
Block a user