From 2302e904e97903c519d4dc5059c446f886a3d6a7 Mon Sep 17 00:00:00 2001 From: Seiichi Uchida Date: Tue, 5 Dec 2017 17:38:07 +0900 Subject: [PATCH] Add a test for 'blank_lines_lower_bound = 1' --- .../source/configs-blank_lines_lower_bound-1.rs | 13 +++++++++++++ .../target/configs-blank_lines_lower_bound-1.rs | 16 ++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 tests/source/configs-blank_lines_lower_bound-1.rs create mode 100644 tests/target/configs-blank_lines_lower_bound-1.rs diff --git a/tests/source/configs-blank_lines_lower_bound-1.rs b/tests/source/configs-blank_lines_lower_bound-1.rs new file mode 100644 index 00000000000..c6058a55b0a --- /dev/null +++ b/tests/source/configs-blank_lines_lower_bound-1.rs @@ -0,0 +1,13 @@ +// rustfmt-blank_lines_lower_bound: 1 + +fn foo() {} +fn bar() {} +// comment +fn foobar() {} + +fn foo1() {} +fn bar1() {} + +// comment + +fn foobar1() {} diff --git a/tests/target/configs-blank_lines_lower_bound-1.rs b/tests/target/configs-blank_lines_lower_bound-1.rs new file mode 100644 index 00000000000..9706699dc7a --- /dev/null +++ b/tests/target/configs-blank_lines_lower_bound-1.rs @@ -0,0 +1,16 @@ +// rustfmt-blank_lines_lower_bound: 1 + +fn foo() {} + +fn bar() {} + +// comment +fn foobar() {} + +fn foo1() {} + +fn bar1() {} + +// comment + +fn foobar1() {}