From 148ad6c1abdb02f14a76ebec75e0976543f063d7 Mon Sep 17 00:00:00 2001 From: Dmitry Matveyev Date: Sat, 5 Jun 2021 23:28:10 +0600 Subject: [PATCH] Add test for electric indentation in Ruby --- test/indent/ruby/deindent-on-if-else-end/cmd | 1 + test/indent/ruby/deindent-on-if-else-end/in | 1 + test/indent/ruby/deindent-on-if-else-end/out | 4 ++++ test/indent/ruby/deindent-on-if-else-end/rc | 3 +++ 4 files changed, 9 insertions(+) create mode 100644 test/indent/ruby/deindent-on-if-else-end/cmd create mode 100644 test/indent/ruby/deindent-on-if-else-end/in create mode 100644 test/indent/ruby/deindent-on-if-else-end/out create mode 100644 test/indent/ruby/deindent-on-if-else-end/rc diff --git a/test/indent/ruby/deindent-on-if-else-end/cmd b/test/indent/ruby/deindent-on-if-else-end/cmd new file mode 100644 index 00000000..af7a7628 --- /dev/null +++ b/test/indent/ruby/deindent-on-if-else-end/cmd @@ -0,0 +1 @@ +celsifelse diff --git a/test/indent/ruby/deindent-on-if-else-end/in b/test/indent/ruby/deindent-on-if-else-end/in new file mode 100644 index 00000000..d2ff880a --- /dev/null +++ b/test/indent/ruby/deindent-on-if-else-end/in @@ -0,0 +1 @@ +if%( ) diff --git a/test/indent/ruby/deindent-on-if-else-end/out b/test/indent/ruby/deindent-on-if-else-end/out new file mode 100644 index 00000000..0c6e08ae --- /dev/null +++ b/test/indent/ruby/deindent-on-if-else-end/out @@ -0,0 +1,4 @@ +if +elsif +else +end diff --git a/test/indent/ruby/deindent-on-if-else-end/rc b/test/indent/ruby/deindent-on-if-else-end/rc new file mode 100644 index 00000000..934f7e83 --- /dev/null +++ b/test/indent/ruby/deindent-on-if-else-end/rc @@ -0,0 +1,3 @@ +source "%val{runtime}/colors/default.kak" +source "%val{runtime}/rc/filetype/ruby.kak" +set buffer filetype ruby