資源簡介
RS coding program design, including test procedures, coding part, channel, etc., have been tested to run smoothly

代碼片段和文件信息
%*************************************************************************
%???FUNCTION????CHECK_EQUAL
%???Param:
%???TestOutput:?run-time?test?output?whose?correctness?need?to?be?verified
%???ExpectedOutput:?expected?output?gotten?beforehand?that?is?thought?to?be
%???????????????????correct?output
%
%???return?value:
%???0:??If?TestOutput???==??ExpectedOutput
%???1:??If?TestOutput???!=??ExpectedOutput
function?[TestRet]?=?CHECK_EQUAL(TestOutput?ExpectedOutput?TestName)
%?first?get?TestOutput?and?ExpectedOutput?to?be?the?smae?dimension
[RowDim(1)?ColDim(1)]?=?size(TestOutput);
[RowDim(2)?ColDim(2)]?=?size(ExpectedOutput);
RowDimMax?=?max(RowDim);
ColDimMax?=?max(ColDim);
TestOutput(RowDimMax?+?1?ColDimMax?+?1)?=?0;
ExpectedOutput(RowDimMax?+?1?ColDimMax?+?1)?=?0;
%?then?we?can?compare?the?two
SucceedPrompt?=?sprintf(‘+++++++++++++++++?[PASSED]?%s?test?++++++++++++++++++‘?TestName);
FailedPrompt??=?sprintf(‘+++++++++++++++++?[FAILED]?%s?test?++++++++++++++++++‘?TestName);
Succeed?=?0;
Failed?=?1;
TestRet?=?Failed;
if?(TestOutput?==?ExpectedOutput)
????disp(SucceedPrompt);
????TestRet?=?Succeed;
else
????disp(FailedPrompt);
????TestRet?=?Failed;
end;
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1227??2008-07-07?11:39??CHECK_EQUAL.m
?????文件???????1254??2008-07-07?11:39??GetPolyTestSampleStu.m
?????文件???????1384??2008-07-07?11:39??GetRsCoDecodeTestSampleStu.m
?????文件????????898??2008-07-07?11:40??GetRsCodeParam.m
?????文件????????870??2008-07-07?11:40??GetSymbolTestSampleStu.m
?????文件???????6427??2008-07-07?11:40??RsCodingUnitTest.m
?????文件???????1695??2008-07-07?11:40??RsChannel.m
?????文件????????674??2008-07-07?11:40??RsSymbolAdd.m
?????文件????????686??2008-07-07?11:41??RsSymbolSub.m
?????文件????????735??2008-07-07?11:41??RsSymbolMul.m
?????文件????????618??2008-07-07?11:41??RsSymbolDiv.m
?????文件????????506??2008-07-07?11:41??RsSymbolRev.m
?????文件????????692??2008-07-07?11:41??RsPolySub.m
?????文件????????744??2008-07-07?11:42??RsPolyAdd.m
?????文件????????759??2008-07-07?11:42??RsPolyMul.m
?????文件????????980??2008-07-07?11:42??RsDecodeCalcSynd.m
?????文件???????1648??2008-07-07?11:42??RsDecodeIterate.m
?????文件???????1009??2008-07-07?11:42??RsDecodeRoot.m
?????文件???????1459??2008-07-07?11:43??RsDecodeForney.m
?????文件????????780??2008-07-07?11:43??RsEncode.m
-----------?---------??----------?-----??----
????????????????25263????????????????????21
評論
共有 條評論