From 785f7fe9ed34dc1c04987533857b3ec8533c8c4c Mon Sep 17 00:00:00 2001 From: Dmitry Matveyev Date: Sun, 6 Jun 2021 01:34:09 +0600 Subject: [PATCH] Add more tests for "do" auto-insert --- .../elixir/following-blocks-should-not-prevent-end/cmd | 1 + .../elixir/following-blocks-should-not-prevent-end/in | 4 ++++ .../elixir/following-blocks-should-not-prevent-end/out | 6 ++++++ .../elixir/following-blocks-should-not-prevent-end/rc | 3 +++ .../elixir/function-definition-shouldnt-duplicate/cmd | 1 + .../indent/elixir/function-definition-shouldnt-duplicate/in | 3 +++ .../elixir/function-definition-shouldnt-duplicate/out | 5 +++++ .../indent/elixir/function-definition-shouldnt-duplicate/rc | 3 +++ 8 files changed, 26 insertions(+) create mode 100644 test/indent/elixir/following-blocks-should-not-prevent-end/cmd create mode 100644 test/indent/elixir/following-blocks-should-not-prevent-end/in create mode 100644 test/indent/elixir/following-blocks-should-not-prevent-end/out create mode 100644 test/indent/elixir/following-blocks-should-not-prevent-end/rc create mode 100644 test/indent/elixir/function-definition-shouldnt-duplicate/cmd create mode 100644 test/indent/elixir/function-definition-shouldnt-duplicate/in create mode 100644 test/indent/elixir/function-definition-shouldnt-duplicate/out create mode 100644 test/indent/elixir/function-definition-shouldnt-duplicate/rc diff --git a/test/indent/elixir/following-blocks-should-not-prevent-end/cmd b/test/indent/elixir/following-blocks-should-not-prevent-end/cmd new file mode 100644 index 00000000..76003030 --- /dev/null +++ b/test/indent/elixir/following-blocks-should-not-prevent-end/cmd @@ -0,0 +1 @@ +c diff --git a/test/indent/elixir/following-blocks-should-not-prevent-end/in b/test/indent/elixir/following-blocks-should-not-prevent-end/in new file mode 100644 index 00000000..5d7be301 --- /dev/null +++ b/test/indent/elixir/following-blocks-should-not-prevent-end/in @@ -0,0 +1,4 @@ +def foo() do%( ) + +def bar() do +end diff --git a/test/indent/elixir/following-blocks-should-not-prevent-end/out b/test/indent/elixir/following-blocks-should-not-prevent-end/out new file mode 100644 index 00000000..661652a2 --- /dev/null +++ b/test/indent/elixir/following-blocks-should-not-prevent-end/out @@ -0,0 +1,6 @@ +def foo() do + +end + +def bar() do +end diff --git a/test/indent/elixir/following-blocks-should-not-prevent-end/rc b/test/indent/elixir/following-blocks-should-not-prevent-end/rc new file mode 100644 index 00000000..5cc4387c --- /dev/null +++ b/test/indent/elixir/following-blocks-should-not-prevent-end/rc @@ -0,0 +1,3 @@ +source "%val{runtime}/colors/default.kak" +source "%val{runtime}/rc/filetype/elixir.kak" +set buffer filetype elixir diff --git a/test/indent/elixir/function-definition-shouldnt-duplicate/cmd b/test/indent/elixir/function-definition-shouldnt-duplicate/cmd new file mode 100644 index 00000000..76003030 --- /dev/null +++ b/test/indent/elixir/function-definition-shouldnt-duplicate/cmd @@ -0,0 +1 @@ +c diff --git a/test/indent/elixir/function-definition-shouldnt-duplicate/in b/test/indent/elixir/function-definition-shouldnt-duplicate/in new file mode 100644 index 00000000..12dbbdd4 --- /dev/null +++ b/test/indent/elixir/function-definition-shouldnt-duplicate/in @@ -0,0 +1,3 @@ +defmodule Module do + def test do%( ) +end diff --git a/test/indent/elixir/function-definition-shouldnt-duplicate/out b/test/indent/elixir/function-definition-shouldnt-duplicate/out new file mode 100644 index 00000000..d0a93b49 --- /dev/null +++ b/test/indent/elixir/function-definition-shouldnt-duplicate/out @@ -0,0 +1,5 @@ +defmodule Module do + def test do + + end +end diff --git a/test/indent/elixir/function-definition-shouldnt-duplicate/rc b/test/indent/elixir/function-definition-shouldnt-duplicate/rc new file mode 100644 index 00000000..5cc4387c --- /dev/null +++ b/test/indent/elixir/function-definition-shouldnt-duplicate/rc @@ -0,0 +1,3 @@ +source "%val{runtime}/colors/default.kak" +source "%val{runtime}/rc/filetype/elixir.kak" +set buffer filetype elixir