Skip to content

Commit 9067e1f

Browse files
author
Reinhold Bertram
committed
adding test case for switch case (#1)
1 parent 6e8505c commit 9067e1f

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

testFiles/MatlabIndentedClass.m

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,34 @@
4949
varargout = varargin;
5050
end
5151

52-
function output = test_linebreak_with_continuation_operator(input)
52+
function output = test_linebreak_with_continuation_operator(inputarg)
5353
%TEST_LINEBREAK_WITH_CONTINUATION_OPERATOR is a test to verify
5454
% line continuation operator
55-
% INPUT, OUTPUT
55+
% INPUTARG, OUTPUT
5656

5757
assignment_at_first_line = ...
58-
input;
58+
inputarg;
5959

6060
assignment_at_second_line = ... some comment
6161
assignment_at_first_line;
6262

6363
output = .... 4 dots give also comment
6464
assignment_at_second_line;
6565
end
66+
67+
function test_switch_case(inputarg)
68+
%TEST_SWITCH_CASE test indentation of switch case
69+
% INPUTARG
70+
% Some more comments to make the checker happy
71+
72+
switch inputarg
73+
case 1
74+
return
75+
case 2
76+
return
77+
otherwise
78+
return
79+
end
80+
end
6681
end
6782
end

0 commit comments

Comments
 (0)