mirror of
https://github.com/helix-editor/helix
synced 2026-07-29 11:50:02 +02:00
cd6a852c9e
This will be used by the cargo indent-check xtask to validate queries, similar to the existing indent tests in helix-core.
21 lines
221 B
Matlab
21 lines
221 B
Matlab
function y = f(x)
|
|
if x > 0
|
|
y = 1;
|
|
elseif x < 0
|
|
y = -1;
|
|
else
|
|
y = 0;
|
|
end
|
|
switch y
|
|
case 1
|
|
disp('one');
|
|
otherwise
|
|
disp('other');
|
|
end
|
|
try
|
|
risky();
|
|
catch
|
|
y = 0;
|
|
end
|
|
end
|