Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 0ce04cbb authored by hhakim's avatar hhakim
Browse files

Minor change.

Comment out 2 Matlab tests not applying anymore because they tested that conj() and ctranspose() return the non-implemented warning message but now they are implemented.
parent c7814fb7
No related branches found
No related tags found
No related merge requests found
...@@ -60,7 +60,7 @@ end ...@@ -60,7 +60,7 @@ end
try try
F = Faust(factors); % this must throw an exception F = Faust(factors); % this must throw an exception
catch ME catch ME
if strcmp(ME.message,expected_err_message) if strcmp(ME.message,expected_err_message)
test_pass = 1; test_pass = 1;
else else
error([ 'error with a wrong message : ' ME.message ' must be : ' expected_err_message]); error([ 'error with a wrong message : ' ME.message ' must be : ' expected_err_message]);
...@@ -148,47 +148,47 @@ disp('Ok'); ...@@ -148,47 +148,47 @@ disp('Ok');
disp('test 5 : complex transpose is not yet implemented for complex scalar Faust'); %disp('test 5 : complex transpose is not yet implemented for complex scalar Faust');
test_pass = 0; %test_pass = 0;
expected_err_message='TODO : ctranspose is not yet implemented for complex scalar Faust'; %expected_err_message='TODO : ctranspose is not yet implemented for complex scalar Faust';
F=Faust({ones(5,4),ones(4,7)+1i*ones(4,7)}); %F=Faust({ones(5,4),ones(4,7)+1i*ones(4,7)});
%
try %try
F_ctrans = F'; % F_ctrans = F';
catch ME %catch ME
if strcmp(ME.message,expected_err_message) % if strcmp(ME.message,expected_err_message)
test_pass = 1; % test_pass = 1;
else % else
error([ 'error with a wrong message : ' ME.message ' must be : ' expected_err_message ]); % error([ 'error with a wrong message : ' ME.message ' must be : ' expected_err_message ]);
end % end
end %end
%
if(~test_pass) %if(~test_pass)
error('failure'); % error('failure');
end %end
disp('Ok'); %disp('Ok');
%
disp('test 6 : conjugate is not yet implemented for Faust');
test_pass = 0;
expected_err_message='TODO : conjugate is not yet implemented for Faust';
F=Faust({ones(5,4),ones(4,7)+1i*ones(4,7)});
try
F_conj = conj(F);
catch ME
if strcmp(ME.message,expected_err_message)
test_pass = 1;
else
error([ 'error with a wrong message : ' ME.message ' must be : ' expected_err_message ]);
end
end
if(~test_pass) %disp('test 6 : conjugate is not yet implemented for Faust');
error('failure'); %test_pass = 0;
end %expected_err_message='TODO : conjugate is not yet implemented for Faust';
disp('Ok'); %F=Faust({ones(5,4),ones(4,7)+1i*ones(4,7)});
%
%try
% F_conj = conj(F);
%catch ME
% if strcmp(ME.message,expected_err_message)
% test_pass = 1;
% else
% error([ 'error with a wrong message : ' ME.message ' must be : ' expected_err_message ]);
% end
%end
%
%if(~test_pass)
% error('failure');
%end
%disp('Ok');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment