Rank: 329830 based on 0 downloads (last 30 days) and 0 file submitted
photo

William Payne

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by William
Updated File Comments Rating
01 Jun 2010 MATLAB xUnit Test Framework MATLAB xUnit is a unit test framework for MATLAB code. Author: Steve Eddins

Steve,

I find xUnit to be an essential tool; and I wish to thank you for and congratulate you on its creation.

Further to Arthur's comment of 02 Feb 2010, I too have experienced similar issues; specifically, when attempting to compare strings that contain escape characters. For example:

function test_suite = temp
initTestSuite;
end
function testCase
assertEqual( 'C:\', 'D:\', 'message.' );
end

Rather than trying to escape the escape-characters, I would suggest modifying the calls to the "MException" constructor within assert*.m, so that the messages get passed as a string parameter rather than as the format string itself. For example, the following:

MException('assertEqual:nonEqual', message)

would become:

MException('assertEqual:nonEqual', '%s', message)

I believe that these modifications do the trick.

Contact us