Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rtest_ac_exp_pwl.cpp: Report old/actual when both available #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions tests/rtest_ac_exp_pwl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,6 @@ int test_driver(
// are testing is an increasing function, and our testbench value keeps incrementing or remains the same (in case of saturation), we expect the
// old value to be lesser than or equal to the current one.

// Update the old value
old_output_exp = actual_value_exp;
// Once an old value has been stored, i.e. towards the end of the first iteration, this value is set to true.
compare_exp = true;

// same thing as above, but for the natural exponential.
if (compare_exp) {
if (old_output_exp > actual_value_exp) {
Expand All @@ -153,6 +148,7 @@ int test_driver(
assert(false); // LCOV_EXCL_LINE
}
}
// Once an old value has been stored, i.e. towards the end of the first iteration, this value is set to true.
old_output_exp = actual_value_exp;
compare_exp = true;
}
Expand Down