comparison test/classes/@Snork/get.m @ 28922:c68b077c8fd6

maint: Use parentheses around conditional expressions in test/. * fA.m, myclass2.m, foo_subsref_subsasgn.m, get.m, set.m, CPrecedenceTester2.m, CPrecedenceTester3.m, get.m, set.m, get.m, set.m, get.m, set.m, subsasgn.m, subsref.m, get.m, set.m, get.m, set.m, get.m, set.m, parent.m, recursive_nest.m, recursive_nest2.m, scope1.m, script_nest.m, varg_nest2.m: Use parentheses around conditional expressions in test/ directory.
author Rik <rik@octave.org>
date Tue, 13 Oct 2020 23:32:38 -0700
parents b1283d4c06c2
children
comparison
equal deleted inserted replaced
28921:967cfcde2e35 28922:c68b077c8fd6
1 function v = get (s, propName) 1 function v = get (s, propName)
2 2
3 switch propName 3 switch (propName)
4 case 'gick' 4 case 'gick'
5 v = s.gick; 5 v = s.gick;
6 otherwise 6 otherwise
7 error ([propName, ' is not a valid Snork property']); 7 error ([propName, ' is not a valid Snork property']);
8 end 8 end