Mercurial > hg > ltpda
annotate m-toolbox/classes/tests/@ut_result_printer/printSummaryString.m @ 29:54f14716c721 database-connection-manager
Update Java code
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Mon, 05 Dec 2011 16:20:06 +0100 |
parents | f0afece42f48 |
children |
rev | line source |
---|---|
0 | 1 % PRINTSUMMARYSTRING returns a string summarising the tests. |
2 % | |
3 % VERSION: $Id: printSummaryString.m,v 1.2 2010/10/26 13:17:14 hewitson Exp $ | |
4 % | |
5 function res = printSummaryString(urp) | |
6 | |
7 res = ''; | |
8 | |
9 % Summary | |
10 res = [res sprintf('------------------------------------\n')]; | |
11 res = [res sprintf('Total # tests: %d\n', urp.nresults)]; | |
12 res = [res sprintf('Tests failed: %d\n', urp.nresults - urp.npassed)]; | |
13 res = [res sprintf('------------------------------------\n')]; | |
14 end |