You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

14 lines
458 B

<html>
<head>
<meta charset="utf-8">
<title>Plain old tests</title>
<script src="../iban.js"></script>
</head>
<body>
<pre></pre>
<script>
var pre = document.getElementsByTagName('pre')[0];
pre.innerHTML += "Correctly detect invalid IBAN: " + (IBAN.isValid('hello world') == false) + "\n";
pre.innerHTML += "Correctly detect valid IBAN: " + (IBAN.isValid('BE68539007547034') == true) + "\n";
</script>
</body>