From 1c16a91fd6ee83bf18c26282184a44e6f32100e0 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 21 May 2017 22:33:00 +0100 Subject: [PATCH] Add some missing tests for c-family indent --- test/indent/c-family/indent-if-body/cmd | 1 + test/indent/c-family/indent-if-body/in | 1 + test/indent/c-family/indent-if-body/out | 2 ++ test/indent/c-family/indent-if-body/rc | 3 +++ test/indent/c-family/open-function/cmd | 1 + test/indent/c-family/open-function/in | 1 + test/indent/c-family/open-function/out | 2 ++ test/indent/c-family/open-function/rc | 3 +++ 8 files changed, 14 insertions(+) create mode 100644 test/indent/c-family/indent-if-body/cmd create mode 100644 test/indent/c-family/indent-if-body/in create mode 100644 test/indent/c-family/indent-if-body/out create mode 100644 test/indent/c-family/indent-if-body/rc create mode 100644 test/indent/c-family/open-function/cmd create mode 100644 test/indent/c-family/open-function/in create mode 100644 test/indent/c-family/open-function/out create mode 100644 test/indent/c-family/open-function/rc diff --git a/test/indent/c-family/indent-if-body/cmd b/test/indent/c-family/indent-if-body/cmd new file mode 100644 index 00000000..2aa0327d --- /dev/null +++ b/test/indent/c-family/indent-if-body/cmd @@ -0,0 +1 @@ +cfoo diff --git a/test/indent/c-family/indent-if-body/in b/test/indent/c-family/indent-if-body/in new file mode 100644 index 00000000..1b99552b --- /dev/null +++ b/test/indent/c-family/indent-if-body/in @@ -0,0 +1 @@ +if (int i = bar())%( ) diff --git a/test/indent/c-family/indent-if-body/out b/test/indent/c-family/indent-if-body/out new file mode 100644 index 00000000..d4596331 --- /dev/null +++ b/test/indent/c-family/indent-if-body/out @@ -0,0 +1,2 @@ +if (int i = bar()) + foo diff --git a/test/indent/c-family/indent-if-body/rc b/test/indent/c-family/indent-if-body/rc new file mode 100644 index 00000000..53c40654 --- /dev/null +++ b/test/indent/c-family/indent-if-body/rc @@ -0,0 +1,3 @@ +source "%val{runtime}/colors/default.kak" +source "%val{runtime}/rc/core/c-family.kak" +set buffer filetype cpp diff --git a/test/indent/c-family/open-function/cmd b/test/indent/c-family/open-function/cmd new file mode 100644 index 00000000..2aa0327d --- /dev/null +++ b/test/indent/c-family/open-function/cmd @@ -0,0 +1 @@ +cfoo diff --git a/test/indent/c-family/open-function/in b/test/indent/c-family/open-function/in new file mode 100644 index 00000000..e6efd7be --- /dev/null +++ b/test/indent/c-family/open-function/in @@ -0,0 +1 @@ +void func() {%( ) diff --git a/test/indent/c-family/open-function/out b/test/indent/c-family/open-function/out new file mode 100644 index 00000000..6d60025f --- /dev/null +++ b/test/indent/c-family/open-function/out @@ -0,0 +1,2 @@ +void func() { + foo diff --git a/test/indent/c-family/open-function/rc b/test/indent/c-family/open-function/rc new file mode 100644 index 00000000..53c40654 --- /dev/null +++ b/test/indent/c-family/open-function/rc @@ -0,0 +1,3 @@ +source "%val{runtime}/colors/default.kak" +source "%val{runtime}/rc/core/c-family.kak" +set buffer filetype cpp