Code covered by the BSD License  

Highlights from
MATLAB xUnit Test Framework

image thumbnail
from MATLAB xUnit Test Framework by Steve Eddins
MATLAB xUnit is a unit test framework for MATLAB code.

testFunctionHandlesA
function test_suite = testFunctionHandlesA
%testFunctionHandlesE Test file used by TestFunctionHandlesTest
%   Contains one failing test.

%   Steven L. Eddins
%   Copyright 2008 The MathWorks, Inc.

initTestSuite;

function testA
error('testFunctionHandlesA:expectedFailure', 'Bogus message');

Contact us at files@mathworks.com