Add tests.

Probably overkill, but at least this is comprehensive . . .
This commit is contained in:
Simon Fowler 2019-06-30 12:57:59 +10:00
parent b2459f5ecb
commit c5dd013235
47 changed files with 122 additions and 0 deletions

View File

@ -0,0 +1 @@
gei<ret>

View File

@ -0,0 +1,3 @@
while true; do
thing1
done

View File

@ -0,0 +1,4 @@
while true; do
thing1
done

View File

@ -0,0 +1,3 @@
source "%val{runtime}/colors/default.kak"
source "%val{runtime}/rc/filetype/sh.kak"
set buffer filetype sh

View File

@ -0,0 +1,5 @@
case $foo in
bar)
thing1
thing2
;;

View File

@ -0,0 +1,6 @@
case $foo in
bar)
thing1
thing2
;;
esac

View File

@ -0,0 +1,3 @@
source "%val{runtime}/colors/default.kak"
source "%val{runtime}/rc/filetype/sh.kak"
set buffer filetype sh

View File

@ -0,0 +1 @@
gei<ret>fi<ret>

View File

@ -0,0 +1,2 @@
if [ $foo ]; then
thing1

View File

@ -0,0 +1,4 @@
if [ $foo ]; then
thing1
fi

View File

@ -0,0 +1,3 @@
source "%val{runtime}/colors/default.kak"
source "%val{runtime}/rc/filetype/sh.kak"
set buffer filetype sh

View File

@ -0,0 +1 @@
gei<ret>;;<ret>*)

View File

@ -0,0 +1,5 @@
case $foo in
bar) thing1;;
baz)
thing1
thing2

View File

@ -0,0 +1,7 @@
case $foo in
bar) thing1;;
baz)
thing1
thing2
;;
*)

View File

@ -0,0 +1,3 @@
source "%val{runtime}/colors/default.kak"
source "%val{runtime}/rc/filetype/sh.kak"
set buffer filetype sh

View File

@ -0,0 +1 @@
gei<ret>

View File

@ -0,0 +1,3 @@
foo () {
thing1
}

View File

@ -0,0 +1,4 @@
foo () {
thing1
}

View File

@ -0,0 +1,3 @@
source "%val{runtime}/colors/default.kak"
source "%val{runtime}/rc/filetype/sh.kak"
set buffer filetype sh

View File

@ -0,0 +1 @@
gei<ret>baz)

View File

@ -0,0 +1,2 @@
case $foo in
bar) thing1;;

View File

@ -0,0 +1,3 @@
case $foo in
bar) thing1;;
baz)

View File

@ -0,0 +1,3 @@
source "%val{runtime}/colors/default.kak"
source "%val{runtime}/rc/filetype/sh.kak"
set buffer filetype sh

View File

@ -0,0 +1 @@
gei<ret>baz

View File

@ -0,0 +1,3 @@
if [ $foo ]; then
bar
else

View File

@ -0,0 +1,4 @@
if [ $foo ]; then
bar
else
baz

View File

@ -0,0 +1,3 @@
source "%val{runtime}/colors/default.kak"
source "%val{runtime}/rc/filetype/sh.kak"
set buffer filetype sh

View File

@ -0,0 +1 @@
gei<ret>thing1

View File

@ -0,0 +1 @@
while true; do

View File

@ -0,0 +1,2 @@
while true; do
thing1

View File

@ -0,0 +1,3 @@
source "%val{runtime}/colors/default.kak"
source "%val{runtime}/rc/filetype/sh.kak"
set buffer filetype sh

View File

@ -0,0 +1 @@
gei<ret>bar)

View File

@ -0,0 +1 @@
case $foo in

View File

@ -0,0 +1,2 @@
case $foo in
bar)

View File

@ -0,0 +1,3 @@
source "%val{runtime}/colors/default.kak"
source "%val{runtime}/rc/filetype/sh.kak"
set buffer filetype sh

View File

@ -0,0 +1 @@
gei<ret>thing1

View File

@ -0,0 +1 @@
if [ $foo ]; then

View File

@ -0,0 +1,2 @@
if [ $foo ]; then
thing1

View File

@ -0,0 +1,3 @@
source "%val{runtime}/colors/default.kak"
source "%val{runtime}/rc/filetype/sh.kak"
set buffer filetype sh

View File

@ -0,0 +1 @@
gei<ret>thing1<ret>thing2

View File

@ -0,0 +1,3 @@
case $foo in
bar) thing1;;
baz)

View File

@ -0,0 +1,5 @@
case $foo in
bar) thing1;;
baz)
thing1
thing2

View File

@ -0,0 +1,3 @@
source "%val{runtime}/colors/default.kak"
source "%val{runtime}/rc/filetype/sh.kak"
set buffer filetype sh

View File

@ -0,0 +1 @@
gei<ret>thing1

View File

@ -0,0 +1 @@
foo () {

View File

@ -0,0 +1,2 @@
foo () {
thing1

View File

@ -0,0 +1,3 @@
source "%val{runtime}/colors/default.kak"
source "%val{runtime}/rc/filetype/sh.kak"
set buffer filetype sh