Skip to content

Commit

Permalink
Add conditional (on MATLAB version) around test that uses string type…
Browse files Browse the repository at this point in the history
… for variable name in t_mp_table.

Thanks to Mahnoor Fatima.
  • Loading branch information
rdzman committed Apr 2, 2024
1 parent 3af3498 commit 51f674d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/t/t_mp_table.m
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,11 @@
t_ok(isequal(T{:, 2:2:6}, [v2 v4 v6]), [t 'T{:, j1:2:jN}']);

t_ok(isequal(T{:, 'igr'}, v1), [t 'T{:, ''igr''} == v1']);
t_ok(isequal(T{:, 'flt'}, v2), [t 'T{:, ''flt''} == v2']);
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']);
end
t_ok(isequal(T{:, 'str'}, v3), [t 'T{:, ''str''} == v3']);
t_ok(isequal(T{:, 'dbl'}, v4), [t 'T{:, ''dbl''} == v4']);
t_ok(isequal(T{:, 'boo'}, v5), [t 'T{:, ''boo''} == v5']);
Expand Down

0 comments on commit 51f674d

Please sign in to comment.