commit | 885ca41cf835313eca052ad112608631685ae6f2 | [log] [tgz] |
---|---|---|
author | Ismael <ismaelJimenez@users.noreply.github.com> | Mon Jun 27 20:26:23 2016 +0200 |
committer | Dominic Hamon <dominichamon@users.noreply.github.com> | Mon Jun 27 11:26:23 2016 -0700 |
tree | 2e256792d54b5d556499eb48803064431168e30c | |
parent | a0783fd7f629789cd406d74392427a73a692bf57 [diff] |
added check for SetComplexityN (#248)
diff --git a/src/complexity.cc b/src/complexity.cc index 93833f9..b42bd38 100644 --- a/src/complexity.cc +++ b/src/complexity.cc
@@ -234,6 +234,7 @@ // Populate the accumulators. for (const Run& run : reports) { + CHECK_GT(run.complexity_n, 0) << "Did you forget to call SetComplexityN?"; n.push_back(run.complexity_n); real_time.push_back(run.real_accumulated_time / run.iterations); cpu_time.push_back(run.cpu_accumulated_time / run.iterations);