Skip to content
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