diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-06-23 14:50:23 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-06-23 14:50:23 +0100 |
commit | 3e8751d8cee8e41031655e9f4d5f364f6100b503 (patch) | |
tree | 4102a22d5a40f584c3a734229a310791a65ae5be /test/testbench.cpp | |
parent | 884c915340b86e162df9bdff9f67ae25407cbaab (diff) | |
download | YAGE-3e8751d8cee8e41031655e9f4d5f364f6100b503.tar.gz YAGE-3e8751d8cee8e41031655e9f4d5f364f6100b503.zip |
Testing matrix
Diffstat (limited to 'test/testbench.cpp')
-rw-r--r-- | test/testbench.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/testbench.cpp b/test/testbench.cpp index 54ce047e..77bd4a5a 100644 --- a/test/testbench.cpp +++ b/test/testbench.cpp @@ -42,9 +42,9 @@ void TestBench::printResults() }); printf("Results:\n"); - printf("+------------+---------+\n"); - printf("| Test Name | Result |\n"); - printf("+------------+---------+\n"); + printf("+---------------------------+---------+\n"); + printf("| Test Name | Result |\n"); + printf("+---------------------------+---------+\n"); for(auto test : tests_) { std::string result; @@ -53,9 +53,9 @@ void TestBench::printResults() else result="FAIL"; - char test_name[10]; + char test_name[25]; - for(std::size_t i=0; i<10; ++i) + for(std::size_t i=0; i<25; ++i) { if(i<test.name.size()) test_name[i]=test.name[i]; @@ -63,9 +63,9 @@ void TestBench::printResults() test_name[i]=' '; } - printf("| %10.10s | %6s |\n", test_name, result.c_str()); + printf("| %25.25s | %6s |\n", test_name, result.c_str()); } - printf("+------------+---------+\n"); + printf("+---------------------------+---------+\n"); printf("\nSummary:\n"); printf("+--------+--------+\n"); printf("| Passed | %6d |\n", passed); |