From f9889a9ff2ff6eb153dc76429e6370ca4c8ecc35 Mon Sep 17 00:00:00 2001 From: Kirk Shoop Date: Sat, 17 Jan 2015 17:57:04 -0800 Subject: [PATCH] fix whitespace and add .editorconfig --- .editorconfig | 9 +++++++++ test/json_unit.cc | 6 +++--- 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..8ac3f31b3 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*] +indent_style = space +indent_size = 4 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true diff --git a/test/json_unit.cc b/test/json_unit.cc index 2d9fcb42a..f4b8fd27b 100644 --- a/test/json_unit.cc +++ b/test/json_unit.cc @@ -165,7 +165,7 @@ TEST_CASE("array") json nonarray = 1; CHECK_THROWS_AS(nonarray.at(0), std::domain_error); CHECK_THROWS_AS(const int i = nonarray[0], std::domain_error); - SKIP_FOR_VS(CHECK_NOTHROW(j[21])); + SKIP_FOR_VS(CHECK_NOTHROW(j[21])); CHECK_THROWS_AS(const int i = j.at(21), std::out_of_range); CHECK_THROWS_AS(nonarray[0] = 10, std::domain_error); // the next test is remove due to undefined behavior @@ -177,7 +177,7 @@ TEST_CASE("array") const json j_const = j; CHECK_THROWS_AS(nonarray_const.at(0), std::domain_error); CHECK_THROWS_AS(const int i = nonarray_const[0], std::domain_error); - SKIP_FOR_VS(CHECK_NOTHROW(j_const[21])); + SKIP_FOR_VS(CHECK_NOTHROW(j_const[21])); CHECK_THROWS_AS(const int i = j.at(21), std::out_of_range); { @@ -190,7 +190,7 @@ TEST_CASE("array") } const json k = j; - SKIP_FOR_VS(CHECK_NOTHROW(k[21])); + SKIP_FOR_VS(CHECK_NOTHROW(k[21])); CHECK_THROWS_AS(const int i = k.at(21), std::out_of_range); // add initializer list