Skip to content

Commit

Permalink
[JMT] Edits to compile all lion tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Manzanero committed Jul 23, 2024
1 parent 1f996af commit 638957c
Show file tree
Hide file tree
Showing 5 changed files with 109 additions and 95 deletions.
2 changes: 1 addition & 1 deletion lion/io/Xml_document.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "tinyxml2.h"

#include "Xml_element.h"
#include "Document.h"
#include "document.h"

class Xml_document : Document
{
Expand Down
6 changes: 4 additions & 2 deletions test/io/database_parameters_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ TEST_F(Database_parameter_test, parameters_all_used_check)
} s;

read_parameters(doc2, "xml_doc/", s.__get_parameters(), s.__used_parameters);
bool parameters_all_used = database_parameters_all_used(doc2.get_root_element());
auto root = doc2.get_root_element();
bool parameters_all_used = database_parameters_all_used(root);
EXPECT_TRUE(parameters_all_used);
}

Expand All @@ -228,6 +229,7 @@ TEST_F(Database_parameter_test, parameters_all_used_check_2)
} s;

read_parameters(doc2, "xml_doc/", s.__get_parameters(), s.__used_parameters);
bool parameters_all_used = database_parameters_all_used(doc2.get_root_element());
auto root = doc2.get_root_element();
bool parameters_all_used = database_parameters_all_used(root);
EXPECT_FALSE(parameters_all_used);
}
4 changes: 2 additions & 2 deletions test/io/xml_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ TEST_F(Xml_test, create_child)
{
Xml_document doc_out("dummy.xml");
doc_out.create_root_element("root");
Document_element& child = *doc_out.get_root_element().add_child("child");
child.set_value("value for child");
auto child = doc_out.get_root_element().add_child("child");
child->set_value("value for child");

std::ostringstream sOut;
sOut << doc_out;
Expand Down
Loading

0 comments on commit 638957c

Please sign in to comment.