mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 14:58:10 -05:00
Reformat code with clang format
This commit is contained in:
@ -1,24 +1,16 @@
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
#include <catch2/generators/catch_generators.hpp>
|
||||
|
||||
#include "Parsing/Impl/IncludingStreamProxy.h"
|
||||
#include "Parsing/Mock/MockParserLineStream.h"
|
||||
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
#include <catch2/generators/catch_generators.hpp>
|
||||
|
||||
namespace test::parsing::impl::including_stream_proxy
|
||||
{
|
||||
TEST_CASE("IncludingStreamProxy: Ensure simple include is working", "[parsing][parsingstream]")
|
||||
{
|
||||
const std::vector<std::string> lines
|
||||
{
|
||||
"Hello world",
|
||||
"#include \"ASDF.txt\"",
|
||||
"and bye"
|
||||
};
|
||||
const std::vector<std::string> lines{"Hello world", "#include \"ASDF.txt\"", "and bye"};
|
||||
|
||||
const std::vector<std::string> asdf
|
||||
{
|
||||
"Hello galaxy"
|
||||
};
|
||||
const std::vector<std::string> asdf{"Hello galaxy"};
|
||||
|
||||
MockParserLineStream mockStream(lines);
|
||||
mockStream.AddIncludeLines("ASDF.txt", asdf);
|
||||
@ -51,17 +43,9 @@ namespace test::parsing::impl::including_stream_proxy
|
||||
|
||||
TEST_CASE("IncludingStreamProxy: Ensure simple include with angle brackets is working", "[parsing][parsingstream]")
|
||||
{
|
||||
const std::vector<std::string> lines
|
||||
{
|
||||
"Hello world",
|
||||
"#include <ASDF.txt>",
|
||||
"and bye"
|
||||
};
|
||||
const std::vector<std::string> lines{"Hello world", "#include <ASDF.txt>", "and bye"};
|
||||
|
||||
const std::vector<std::string> asdf
|
||||
{
|
||||
"Hello galaxy"
|
||||
};
|
||||
const std::vector<std::string> asdf{"Hello galaxy"};
|
||||
|
||||
MockParserLineStream mockStream(lines);
|
||||
mockStream.AddIncludeLines("ASDF.txt", asdf);
|
||||
@ -94,17 +78,9 @@ namespace test::parsing::impl::including_stream_proxy
|
||||
|
||||
TEST_CASE("IncludingStreamProxy: Ensure can have spaces before include directive", "[parsing][parsingstream]")
|
||||
{
|
||||
const std::vector<std::string> lines
|
||||
{
|
||||
"Hello world",
|
||||
" #include \"ASDF.txt\" ",
|
||||
"and bye"
|
||||
};
|
||||
const std::vector<std::string> lines{"Hello world", " #include \"ASDF.txt\" ", "and bye"};
|
||||
|
||||
const std::vector<std::string> asdf
|
||||
{
|
||||
"Hello galaxy"
|
||||
};
|
||||
const std::vector<std::string> asdf{"Hello galaxy"};
|
||||
|
||||
MockParserLineStream mockStream(lines);
|
||||
mockStream.AddIncludeLines("ASDF.txt", asdf);
|
||||
@ -137,19 +113,9 @@ namespace test::parsing::impl::including_stream_proxy
|
||||
|
||||
TEST_CASE("IncludingStreamProxy: Ensure pragma once prevents including the same file more than once", "[parsing][parsingstream]")
|
||||
{
|
||||
const std::vector<std::string> lines
|
||||
{
|
||||
"Hello world",
|
||||
"#include \"ASDF.txt\"",
|
||||
"#include \"ASDF.txt\"",
|
||||
"and bye"
|
||||
};
|
||||
const std::vector<std::string> lines{"Hello world", "#include \"ASDF.txt\"", "#include \"ASDF.txt\"", "and bye"};
|
||||
|
||||
const std::vector<std::string> asdf
|
||||
{
|
||||
"#pragma once",
|
||||
"Hello galaxy"
|
||||
};
|
||||
const std::vector<std::string> asdf{"#pragma once", "Hello galaxy"};
|
||||
|
||||
MockParserLineStream mockStream(lines);
|
||||
mockStream.AddIncludeLines("ASDF.txt", asdf);
|
||||
@ -179,4 +145,4 @@ namespace test::parsing::impl::including_stream_proxy
|
||||
|
||||
REQUIRE(proxy.Eof());
|
||||
}
|
||||
}
|
||||
} // namespace test::parsing::impl::including_stream_proxy
|
||||
|
Reference in New Issue
Block a user