eltest.EmacsTest.m:
New class in a package with methods that throw errors. Use for testing error scanning.
This commit is contained in:
parent
391bd8a57f
commit
7adebb5b4e
1 changed files with 25 additions and 0 deletions
25
tests/+eltest/@EmacsTest/EmacsTest.m
Normal file
25
tests/+eltest/@EmacsTest/EmacsTest.m
Normal 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
|
Loading…
Reference in a new issue