Skip to content

Commit

Permalink
Update test that uses string type for variable name in t_mp_table to …
Browse files Browse the repository at this point in the history
…avoid syntax error on older MATLAB versions.
  • Loading branch information
rdzman committed Apr 22, 2024
1 parent 31592d5 commit 7fe4820
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/t/t_mp_table.m
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@
if have_feature('matlab') && have_feature('matlab', 'vnum') < 9.005 % R2018b
t_ok(isequal(T{:, 'flt'}, v2), [t 'T{:, ''flt''} == v2']);
else
t_ok(isequal(T{:, "flt"}, v2), [t 'T{:, "flt"} == v2']);
cond = eval('isequal(T{:, "flt"}, v2)');
t_ok(cond, [t 'T{:, "flt"} == v2']);
end
t_ok(isequal(T{:, 'str'}, v3), [t 'T{:, ''str''} == v3']);
t_ok(isequal(T{:, 'dbl'}, v4), [t 'T{:, ''dbl''} == v4']);
Expand Down

0 comments on commit 7fe4820

Please sign in to comment.