Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lee James O'Riordan
Megadep
Commits
748fef0e
Commit
748fef0e
authored
Oct 19, 2020
by
Kenneth Hanley
Browse files
Format source files
parent
c36e665c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/megadep.main.cpp
View file @
748fef0e
...
...
@@ -14,7 +14,7 @@ struct overloaded : Ts... {
};
template
<
class
...
Ts
>
overloaded
(
Ts
...)
->
overloaded
<
Ts
...
>
;
overloaded
(
Ts
...)
->
overloaded
<
Ts
...
>
;
int
main
(
int
argc
,
char
*
argv
[])
...
...
src/megadep/filesystem.test.cpp
View file @
748fef0e
...
...
@@ -91,15 +91,16 @@ TEST_CASE(
auto
includes
=
megadep
::
read_includes
(
this_file
);
// includes copy/pasted from the top of this file!!
std
::
vector
<
std
::
string
>
expected_includes
=
{
"<megadep/filesystem.hpp>"
,
"<megadep/config.hpp>"
,
"<catch2/catch.hpp>"
,
"<algorithm>"
,
"<array>"
,
"<cstdio>"
,
"<cstring>"
,
"<string>"
,
"<vector>"
};
std
::
vector
<
std
::
string
>
expected_includes
=
{
"<megadep/filesystem.hpp>"
,
"<megadep/config.hpp>"
,
"<catch2/catch.hpp>"
,
"<algorithm>"
,
"<array>"
,
"<cstdio>"
,
"<cstring>"
,
"<string>"
,
"<vector>"
};
std
::
sort
(
includes
.
begin
(),
includes
.
end
());
std
::
sort
(
expected_includes
.
begin
(),
expected_includes
.
end
());
...
...
@@ -119,8 +120,8 @@ TEST_CASE(
const
std
::
string
megadep_include
=
"src"
;
const
std
::
string
catch2_include
=
"external/catch2/single_include"
;
const
std
::
vector
<
std
::
string
>
search_directories
=
{
megadep_include
,
catch2_include
};
const
std
::
vector
<
std
::
string
>
search_directories
=
{
megadep_include
,
catch2_include
};
SECTION
(
"read includes from this_file."
)
{
auto
includes
=
megadep
::
read_includes
(
this_file
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment