aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/testing/Testing.cpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-10-29 21:14:55 +0100
committer GitHub <noreply@github.com>2023-10-29 21:14:55 +0100
commit06cc0606156d009026930c785c62434276fbe782 (patch)
treed37fcb69766ec029ea4e3e2816c419f9d7e05f7c /src/openvic-simulation/testing/Testing.cpp
parentd8ec90f07342876e9331819bd3cc372050f78248 (diff)
parent1b5e43fa7750cc4025d32f18390593cbce3ba842 (diff)
Merge pull request #67 from OpenVicProject/format
Formating
Diffstat (limited to 'src/openvic-simulation/testing/Testing.cpp')
-rw-r--r--src/openvic-simulation/testing/Testing.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/openvic-simulation/testing/Testing.cpp b/src/openvic-simulation/testing/Testing.cpp
index 42df80c..da9dccf 100644
--- a/src/openvic-simulation/testing/Testing.cpp
+++ b/src/openvic-simulation/testing/Testing.cpp
@@ -1,7 +1,9 @@
-#include <testing/Testing.hpp>
-#include <testing/TestScript.hpp>
+#include "Testing.hpp"
+
#include <fstream>
+#include "openvic-simulation/testing/TestScript.hpp"
+
using namespace OpenVic;
Testing::Testing(GameManager* game_manager) {
@@ -54,7 +56,7 @@ void Testing::report_results() {
report_result("Failed Requirements", test_results, failed_reqs);
report_result("Untested Requirements", test_results, untested_reqs);
- test_results << std::endl<< std::endl;
+ test_results << std::endl << std::endl;
}
test_results.close();
}
@@ -65,6 +67,8 @@ void Testing::report_result(std::string req_title, std::ofstream& outfile, std::
for (auto req : reqs) {
outfile << req->get_id() << " ";
}
- if (reqs.size() < 1) outfile << "None";
+ if (reqs.size() < 1) {
+ outfile << "None";
+ }
outfile << std::endl << std::endl;
}