Code covered by the BSD License  

Highlights from
MATLAB xUnit Test Framework

image thumbnail

MATLAB xUnit Test Framework


Steve Eddins (view profile)


31 Jan 2009 (Updated )

MATLAB xUnit is a unit test framework for MATLAB code.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

% UTILS Utility package for MATLAB xUnit Test Framework
% Array Comparison
%   compareFloats            - Compare floating-point arrays using tolerance
% Test Case Discovery Functions
%   isTestCaseSubclass       - True for name of TestCase subclass
% String Functions
%   arrayToString            - Convert array to string for display
%   comparisonMessage        - Assertion message string for comparing two arrays
%   containsRegexp           - True if string contains regular expression
%   isSetUpString            - True for string that looks like a setup function
%   isTearDownString         - True for string that looks like teardown function
%   isTestString             - True for string that looks like a test function
%   stringToCellArray        - Convert string to cell array of strings
% Miscellaneous Functions
%   generateDoc              - Publish test scripts in mtest/doc
%   parseFloatAssertInputs   - Common input-parsing logic for several functions

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

Contact us