Skip to content

Commit

Permalink
Add some more test vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
chriso committed Feb 19, 2016
1 parent 8682441 commit f9c0cfb
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion test/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -1425,7 +1425,13 @@ describe('Validators', function () {
test({
validator: 'isBase64'
, valid: [
'TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4='
'Zg=='
, 'Zm8='
, 'Zm9v'
, 'Zm9vYg=='
, 'Zm9vYmE='
, 'Zm9vYmFy'
, 'TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4='
, 'Vml2YW11cyBmZXJtZW50dW0gc2VtcGVyIHBvcnRhLg=='
, 'U3VzcGVuZGlzc2UgbGVjdHVzIGxlbw=='
, 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuMPNS1Ufof9EW/M98FNw'+
Expand All @@ -1440,6 +1446,10 @@ describe('Validators', function () {
'12345'
, ''
, 'Vml2YW11cyBmZXJtZtesting123'
, 'Zg='
, 'Zm=8'
, '=m9vYg=='
, 'Zm9vYmFy===='
]
});
for (var i = 0, str = '', encoded; i < 1000; i++) {
Expand Down

0 comments on commit f9c0cfb

Please sign in to comment.