|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Test Page for CheckLuhnMod10.js</title>
<script language="javascript" type="text/javascript" src="../CheckLuhnMod10.js"></script>
<script language="javascript" type="text/javascript" src="coretest.js"></script>
<script language="javascript" type="text/javascript" src="../jsunit/app/jsUnitCore.js"></script>
<script language="javascript" type="text/javascript" src="jsunitrunner.js"></script>
</head>
<body>
<h1>Test Page for CheckLuhnMod10.js</h1>
<script language="javascript" type="text/javascript">
function getCheckInstance() {
return LuhnMod10Check;
}
function badTransposition(a, b) {
return (a == '0' && b == '9') || (a == '9' && b == '0');
}
var testcases = [testCheck, testSingleError, testAdjacentTraspositions];
TestRunner.RunTests(testcases);
</script>
</body>
</html>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.