From f3fea9dbbbdea674a08d28a85afa197a5529b203 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Thu, 22 Jun 2017 22:46:29 +0100 Subject: Finished test bench --- test/testbench.cpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'test/testbench.cpp') diff --git a/test/testbench.cpp b/test/testbench.cpp index 6b2a6084..9995e5c0 100644 --- a/test/testbench.cpp +++ b/test/testbench.cpp @@ -34,6 +34,7 @@ void TestBench::endTest(bool pass) void TestBench::printResults() { + printf("Results:\n"); printf("+------------+---------+\n"); printf("| Test Name | Result |\n"); printf("+------------+---------+\n"); @@ -44,11 +45,21 @@ void TestBench::printResults() result="PASS"; else result="FAIL"; + + char test_name[10]; + + for(std::size_t i=0; i<10; ++i) + { + if(i