- 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
logical
type (i.e.true
andfalse
) as second input tohave_feature()
, as well asnumeric
type (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
got
andexpected
arguments 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
LICENSE
andCOPYING
files for details.
- Massive help text update to more closely match MathWorks conventions; function names in ALL CAPS, See also ..., Examples, etc.
- Removed unnecessary
return
statement at end of all M-files. If anything it should be anend
statement, 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
t
subdirectory with various tests and testing tools.