Code covered by the BSD License  

Highlights from
Test Tools - Utilities for unit tests

from Test Tools - Utilities for unit tests by Jay St. Pierre
Tools that facilitate debugging or writing unit test for MATLAB functions.

disp_test_name(test_name)
function disp_test_name(test_name)
%DISP_TEST_NAME formats test_name for output.
%     This produces a smaller banner than  DISP_TEST_TITLE and is ideal for
%     indicating the start of a subtests.

% $Source: /home/stpierre/cvsroot/matlab/tools/test_tools/disp_test_name.m,v $
% $Revision: 1.4 $
% $Date: 2009-07-26 20:41:24 $

% Copyright (c) 2000-2009, Jay A. St. Pierre.  All rights reserved.

if ~ischar(test_name)
  error('test_name must be a string')
end

disp('----------------------------------------')
disp(test_name); 
disp('----------------------------------------')

Contact us at files@mathworks.com