Mercurial > hg > ltpda
diff m-toolbox/classes/tests/@ut_result_printer/printSummaryString.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/m-toolbox/classes/tests/@ut_result_printer/printSummaryString.m Wed Nov 23 19:22:13 2011 +0100 @@ -0,0 +1,14 @@ +% PRINTSUMMARYSTRING returns a string summarising the tests. +% +% VERSION: $Id: printSummaryString.m,v 1.2 2010/10/26 13:17:14 hewitson Exp $ +% +function res = printSummaryString(urp) + + res = ''; + + % Summary + res = [res sprintf('------------------------------------\n')]; + res = [res sprintf('Total # tests: %d\n', urp.nresults)]; + res = [res sprintf('Tests failed: %d\n', urp.nresults - urp.npassed)]; + res = [res sprintf('------------------------------------\n')]; +end \ No newline at end of file