- Use recently added
mp_warning()in place ofwarning()everywhere to allow redirecting of console output. - Add
mp_warning()function which can be used as a drop-in replacement forwarning()for throwing warnings, but not for querying/controling warning status. By default it behaves identically, but can use anmp.loggerobject to redirect the output to a file, or elsewhere via a custommp.loggersubclass.
- Use recently added
mp_printf()in place offprintf()everywhere to allow redirecting of console output. - Add
mp.loggerclass, andmp_printf()andmp_disp()functions which can be used as drop-in replacements forfprintf()anddisp(). By default they behave identically, but can use anmp.loggerobject to redirect the output to a file, or elsewhere via a custommp.loggersubclass.
- Limit
t_is()display to top 10 toleration violations if there are more than 15 elements that do not meet the desired tolerance.
- Release 8.1.
- Add two new functions to assist with code for debugging:
assert_debug()-- callsassert()ifDEBUG_MODEis ontoggle_debug_mode()-- set/toggles whetherDEBUG_MODEis on
- Enhance
t_is()to handleInfvalues appropriately.
- Release 8.0.
- Add Sphinx-based User and Reference documentation.
- Release 8.0b1.
- Add
t_str_match()to test that a string/char array matches an expected value. Includes the option to apply a set of regular expression or simple string replacements before comparing. - Add
t_file_match()to test that the contents of two text files match, with the option to delete one if they do match. Includes the option to apply a set of string or regular expresssion replacements before comparing.
- Allow
logicaltype (i.e.trueandfalse) as second input tohave_feature(), as well asnumerictype (1 and 0), to facilitate using (logical) output of prior call as toggle input.
- Release 7.1.
- Add
have_feature(), moved from MP-Opt-Model, as a modular, extensible alternative tohave_fcn(), originally from MATPOWER, where the detection of a feature named<tag>is implemented by the functionhave_feature_<tag>(). Includes feature detection functions for'matlab'and'octave'. - Switch from Travis-CI to GitHub workflows for continuous integration testing.
- Add
mptestver()defining explicit version number.
- Improve handling of complex quantities in
t_is(). Now displays differences in imaginary parts as well when there is a mismatch. Previously, it would show only the real parts which could be identical.
- Release 7.0.
- Release 7.0b1.
- Fix bug in
t_is()where comparing an integer value with a double value would pass when it should not.
- Replace
clock()/etime()withtic()/toc()for timing.
- Added
abs()to output of failed tests for consistency when comparing complex numbers (affects display only, test were correct).
- Modified
t_is()to handle sparse matrix inputs.
- Updates for Travis-CI integration, with option to exit Octave or MATLAB if any test fails. Thanks to Richard Lincoln for getting us started with Travis-CI.
- no change
- Moved development to GitHub: https://github.com/MATPOWER/mptest.
- no change
- Modified
t_is()to handle matrix inputs of dimension greater than two. - Added
t_test_fcns()to testt_ok()andt_is()and manually check output of failed tests.
- Switch to more permissive 3-clause BSD license from GPL 3.0.
- Optionally return success flag from
t_ok()andt_is().
- Empty
gotandexpectedarguments tot_is()now count as a passing test instead of an error, as long as the dimensions match.
- Updated
t_is()to properly print when result includes NaNs.
- no change
- Improved output of
t_is(). Includes only elements violating tolerance.
- no change
- Changed licensing to GNU General Public license. See
LICENSEandCOPYINGfiles for details.
- Massive help text update to more closely match MathWorks conventions; function names in ALL CAPS, See also ..., Examples, etc.
- Removed unnecessary
returnstatement at end of all M-files. If anything it should be anendstatement, but even that is optional, so we just let functions get terminated by the end-of-file or another function declaration.
- no change
- no change
- Added total tests to printing of number of tests skipped.
- Updated
t_is()to handle dimension mismatches.
- no change
- no change
- no change
- Modified
t_is()to print max diff and tolerance upon failure.
- Added skipping of tests and reporting of skipped tests.
- Added
tsubdirectory with various tests and testing tools.