Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
renkekuhlmann committed Mar 27, 2023
1 parent 6e00286 commit 7c59b55
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions test/test_symbols.m
Original file line number Diff line number Diff line change
Expand Up @@ -1275,7 +1275,11 @@ function test_changeSymbol(t, cfg)
t.add('change_symbol_domain_labels_1');
x1.domain = {i2};
x1.records = struct();
x1.records.i = categorical({'i21', 'i22', 'i23'})';
if gdx.features.categorical
x1.records.i = categorical({'i21', 'i22', 'i23'})';
else
x1.records.i = [1; 2; 3];
end
x1.records.level = [1; 2; 3];
t.assert(x1.isValid());
gdx.modified = false;
Expand Down Expand Up @@ -1310,8 +1314,13 @@ function test_changeSymbol(t, cfg)
t.add('change_symbol_domain_labels_2');
x1.domain = {'i', 'j'};
x1.records = struct();
x1.records.i = categorical({'i21', 'i22', 'i23'})';
x1.records.j = categorical({'j21', 'j22', 'j23'})';
if gdx.features.categorical
x1.records.i = categorical({'i21', 'i22', 'i23'})';
x1.records.j = categorical({'j21', 'j22', 'j23'})';
else
x1.records.i = [1; 2; 3];
x1.records.j = [1; 2; 3];
end
x1.records.level = [1; 2; 3];
t.assert(x1.isValid());
gdx.modified = false;
Expand Down

0 comments on commit 7c59b55

Please sign in to comment.