diff --git a/tests/rtest_ac_exp_pwl.cpp b/tests/rtest_ac_exp_pwl.cpp index 0a36861..d90dd5d 100644 --- a/tests/rtest_ac_exp_pwl.cpp +++ b/tests/rtest_ac_exp_pwl.cpp @@ -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) { @@ -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; }