Commit 748fef0e authored by Kenneth Hanley's avatar Kenneth Hanley
Browse files

Format source files

parent c36e665c
Pipeline #2553 passed with stages
in 3 minutes and 58 seconds
...@@ -14,7 +14,7 @@ struct overloaded : Ts... { ...@@ -14,7 +14,7 @@ struct overloaded : Ts... {
}; };
template<class... Ts> template<class... Ts>
overloaded(Ts...)->overloaded<Ts...>; overloaded(Ts...) -> overloaded<Ts...>;
int main(int argc, char* argv[]) int main(int argc, char* argv[])
......
...@@ -91,15 +91,16 @@ TEST_CASE( ...@@ -91,15 +91,16 @@ TEST_CASE(
auto includes = megadep::read_includes(this_file); auto includes = megadep::read_includes(this_file);
// includes copy/pasted from the top of this file!! // includes copy/pasted from the top of this file!!
std::vector<std::string> expected_includes = {"<megadep/filesystem.hpp>", std::vector<std::string> expected_includes = {
"<megadep/config.hpp>", "<megadep/filesystem.hpp>",
"<catch2/catch.hpp>", "<megadep/config.hpp>",
"<algorithm>", "<catch2/catch.hpp>",
"<array>", "<algorithm>",
"<cstdio>", "<array>",
"<cstring>", "<cstdio>",
"<string>", "<cstring>",
"<vector>"}; "<string>",
"<vector>"};
std::sort(includes.begin(), includes.end()); std::sort(includes.begin(), includes.end());
std::sort(expected_includes.begin(), expected_includes.end()); std::sort(expected_includes.begin(), expected_includes.end());
...@@ -119,8 +120,8 @@ TEST_CASE( ...@@ -119,8 +120,8 @@ TEST_CASE(
const std::string megadep_include = "src"; const std::string megadep_include = "src";
const std::string catch2_include = "external/catch2/single_include"; const std::string catch2_include = "external/catch2/single_include";
const std::vector<std::string> search_directories = {megadep_include, const std::vector<std::string> search_directories = {
catch2_include}; megadep_include, catch2_include};
SECTION ("read includes from this_file.") { SECTION ("read includes from this_file.") {
auto includes = megadep::read_includes(this_file); auto includes = megadep::read_includes(this_file);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment