Code covered by the BSD License  

Highlights from
Doctest - embed testable examples in your function's help comments

Doctest - embed testable examples in your function's help comments

by

 

27 Sep 2010 (Updated )

Put a usage example in the help of your function, then test it to make sure it still works over time

should_fail.m
% Has a doctest that should fail.
%
% >> 3 + 3
% 
% ans =
%
%      5
%

Contact us