I had to submit my solution at 4:30 am local time to be between 7 and 9...too sleepy to think about that :-)
Ok!! this IS an argument! ;-)
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
% 11 Jan-2013
% I test if fopen is used !!
% some guys use fopen to change assert.m, datestr.m ...
filetext = fileread('your_fcn_name.m')
assert(isempty(strfind(filetext, 'fopen')))
filetext =
1;
%This code written by profile_id 2255311
|
2 | Pass |
%%
% 16 Jan-2013
% I now test Inf since the aim is to submit a problem between 7 and 9 AM sorry guys!
% Moreover some comments give the solution which is not fair
filetext = fileread('your_fcn_name.m')
assert(isempty(strfind(filetext, 'Inf')))
filetext = fileread('your_fcn_name.m')
assert(isempty(strfind(filetext, 'inf')))
% 18-Jan-2013
% test suite suggested by Joseph Kirk (thanks)
y_correct = false;
if str2double(datestr(now,'hh')) >= 7 & str2double(datestr(now,'hh')) <= 9
y_correct = true;
end
assert(isequal(y_correct,true))
filetext =
1;
%This code written by profile_id 2255311
filetext =
1;
%This code written by profile_id 2255311
|
Return a list sorted by number of occurrences
1225 Solvers
468 Solvers
147 Solvers
Back to basics 2 - Function Path
139 Solvers
119 Solvers