Skip to content

Commit

Permalink
[skip ci] clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
continuous integration committed Jul 4, 2024
1 parent 416c229 commit 8c96b86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/yaml_schema.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void checkSchema(const YAML::Node& node_schema,
auto type =
isSequenceSchema(node_schema) ? getTypeOfSequence(node_schema) : node_schema[TYPE].as<std::string>();
// If type=="derived" or "derived[]", 'BASE' of type string is required
if (type == "derived")
if (type == "derived")
{
if (not node_schema[BASE])
{
Expand Down
5 changes: 3 additions & 2 deletions test/gtest_apply_schema.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,13 @@ TEST(schema, nontrivial_options_default_value)

TEST(schema, complex_case)
{
YamlServer server = YamlServer({ROOT_DIR + "/test/schema/folder_schema"}, ROOT_DIR + "/test/yaml/complex_case.yaml");
YamlServer server =
YamlServer({ROOT_DIR + "/test/schema/folder_schema"}, ROOT_DIR + "/test/yaml/complex_case.yaml");

std::cout << "before: \n" << server.getNode() << std::endl;

server.addFolderSchema(ROOT_DIR + "/test/schema/complex_case");

EXPECT_TRUE(server.applySchema("Problem.schema"));

std::cout << "after Problem.schema: \n" << server.getNode() << std::endl;
Expand Down

0 comments on commit 8c96b86

Please sign in to comment.