diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2016-05-05 23:09:57 +0200 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2016-05-05 23:09:57 +0200 |
commit | 56aa1701c955546e049ec0dbe5b2777d592b5fc1 (patch) | |
tree | a6cf4ec1c469abc5a59c0572ca6a193788ee60da /test/correctness | |
parent | f18c12389d849c1364791ffbf51e2041c9bd1a2e (diff) |
Added printing of indices when testing in verbose mode
Diffstat (limited to 'test/correctness')
-rw-r--r-- | test/correctness/testblas.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/correctness/testblas.cc b/test/correctness/testblas.cc index a5ccefe0..6bcba267 100644 --- a/test/correctness/testblas.cc +++ b/test/correctness/testblas.cc @@ -143,7 +143,8 @@ void TestBlas<T,U>::TestRegular(std::vector<Arguments<U>> &test_vector, const st if (!TestSimilarity(result1[index], result2[index])) { errors++; if (verbose_) { - fprintf(stdout, "\n Incorrect value found: "); + if (get_id2_(args) == 1) { fprintf(stdout, "\n Error at index %lu: ", id1); } + else { fprintf(stdout, "\n Error at %lu,%lu: ", id1, id2); } std::cout << result1[index]; fprintf(stdout, " (reference) versus "); std::cout << result2[index]; |