Skip to content

Commit

Permalink
TST: update expected output to be cell rather than string
Browse files Browse the repository at this point in the history
  • Loading branch information
nno committed Sep 16, 2017
1 parent 4e1da80 commit b185f13
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_wtf.m
Expand Up @@ -31,7 +31,7 @@ function test_wtf_basics()
assert_contains(h,['environment: ' env_string]); assert_contains(h,['environment: ' env_string]);
assertEqual(cosmo_wtf('environment'),env_string); assertEqual(cosmo_wtf('environment'),env_string);


external_cell=cosmo_strsplit(h,'cosmo_externals: ',2,'\n',1, ', '); external_cell=cosmo_wtf('cosmo_externals');
external_expected_cell=cosmo_check_external('-list'); external_expected_cell=cosmo_check_external('-list');
assertEqual(sort(external_cell(:)), sort(external_expected_cell(:))); assertEqual(sort(external_cell(:)), sort(external_expected_cell(:)));


Expand All @@ -52,7 +52,8 @@ function test_wtf_warnings()
warning(anti_label,'all'); warning(anti_label,'all');
warning(label,warning_id); warning(label,warning_id);


w=cosmo_wtf('warnings'); w_cell=cosmo_wtf('warnings');
w=cosmo_strjoin(w_cell,', ');
assert_contains(w,sprintf('%s: %s',warning_id,label)); assert_contains(w,sprintf('%s: %s',warning_id,label));
assert_not_contains(w,sprintf('%s: %s',warning_id,anti_label)); assert_not_contains(w,sprintf('%s: %s',warning_id,anti_label));
end end
Expand Down

0 comments on commit b185f13

Please sign in to comment.