Cody

Solution 1792961

Submitted on 19 Apr 2019
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
% Cody External accessibility % This file may need to change in the future % First test -- read in coffee file %in_f='https://www.cs.drexel.edu/~bchar/data1.txt'; %in_f='http://www.cnn.com'; %in_f='http://example.iana.org/'; in_f='http://history.eserver.org/gettysburg-address.txt'; out_f='data1.txt'; urlwrite(in_f,out_f); s=dir(out_f) assert(strcmp(s.name,out_f)) %assert(s.bytes==1643); result1 = textCount1(out_f); assert(length(result1)==2); countE=result1(1) assert(countE==5) %countE1Correct = 468 %countWords1Correct= 731 %assert(isequal(countE, countE1Correct)); %assert(isEqual(countWords, countWords1Correct));

Error using urlreadwrite (line 98) Error downloading URL. Your network connection may be down or your proxy settings improperly configured. Error in urlwrite (line 52) [f,status] = urlreadwrite(mfilename,catchErrors,url,filename,varargin{:}); Error in Test1 (line 9) urlwrite(in_f,out_f);

Suggested Problems

More from this Author1