diff options
author | hop311 <hop3114@gmail.com> | 2024-02-19 21:36:19 +0100 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2024-02-19 21:56:05 +0100 |
commit | e5a7ddfa0aeb8f62e2b53f111122c1c51c03dabc (patch) | |
tree | d55471ba1dd0a487e14e2ab18a3c4e3e2d0140ad /src/openvic-simulation/testing/Requirement.cpp | |
parent | 35e5f7828a41736194362186ad4f946fad5964d1 (diff) |
Fixed point rounding functions and sources cleanup
Diffstat (limited to 'src/openvic-simulation/testing/Requirement.cpp')
-rw-r--r-- | src/openvic-simulation/testing/Requirement.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/openvic-simulation/testing/Requirement.cpp b/src/openvic-simulation/testing/Requirement.cpp index e7d03e5..eb48f5b 100644 --- a/src/openvic-simulation/testing/Requirement.cpp +++ b/src/openvic-simulation/testing/Requirement.cpp @@ -6,3 +6,11 @@ void Requirement::set_pass(bool in_pass) { pass = in_pass; set_tested(true); // Ever setting a pass condition implies it has been tested } + +void Requirement::set_target_value(std::string_view new_target_value) { + target_value = new_target_value; +} + +void Requirement::set_actual_value(std::string_view new_actual_value) { + actual_value = new_actual_value; +} |