isValid
should be a function.
testString: assert(typeof isValid=='function','isValid
should be a function.');
- text: isValid("GB82 WEST 1234 5698 7654 32")
should return a boolean.
testString: assert(typeof isValid('GB82 WEST 1234 5698 7654 32')=='boolean','isValid("GB82 WEST 1234 5698 7654 32")
should return a boolean.');
- text: isValid("GB82 WEST 1234 5698 7654 32")
should return true
.
testString: assert.equal(isValid('GB82 WEST 1234 5698 7654 32'),true,'isValid("GB82 WEST 1234 5698 7654 32")
should return true
.');
- text: isValid("GB82 WEST 1.34 5698 7654 32")
should return false
.
testString: assert.equal(isValid('GB82 WEST 1.34 5698 7654 32'),false,'isValid("GB82 WEST 1.34 5698 7654 32")
should return false
.');
- text: isValid("GB82 WEST 1234 5698 7654 325")
should return false
.
testString: assert.equal(isValid('GB82 WEST 1234 5698 7654 325'),false,'isValid("GB82 WEST 1234 5698 7654 325")
should return false
.');
- text: isValid("GB82 TEST 1234 5698 7654 32")
should return false
.
testString: assert.equal(isValid('GB82 TEST 1234 5698 7654 32'),false,'isValid("GB82 TEST 1234 5698 7654 32")
should return false
.');
- text: isValid("SA03 8000 0000 6080 1016 7519")
should return true
.
testString: assert.equal(isValid('SA03 8000 0000 6080 1016 7519'),true,'isValid("SA03 8000 0000 6080 1016 7519")
should return true
.');
```