eltest.EmacsTest.m:

New class in a package with methods that throw errors.
Use for testing error scanning.
This commit is contained in:
Eric Ludlam 2019-11-21 16:32:42 -05:00
parent 391bd8a57f
commit 7adebb5b4e

View file

@ -0,0 +1,25 @@
classdef EmacsTest
% Class EMACSTEST
%
% Class that produces errors and file names we can test.
properties
prop1;
end
methods
function h = EmacsTest()
% Constructor
end
function throwerr(~)
error('Error thrown from Emacs Test');
end
function throwprop(et)
et.prop1 = 1;
et.prop2 = 2; % should error
end
end
end