Bez popisu

1234567891011121314151617181920
  1. /*jshint strict:true node:true es5:true onevar:true laxcomma:true laxbreak:true eqeqeq:true immed:true latedef:true*/
  2. (function () {
  3. "use strict";
  4. var atob = require('.')
  5. , encoded = "SGVsbG8gV29ybGQ="
  6. , unencoded = "Hello World"
  7. /*
  8. , encoded = "SGVsbG8sIBZM"
  9. , unencoded = "Hello, 世界"
  10. */
  11. ;
  12. if (unencoded !== atob(encoded)) {
  13. console.log('[FAIL]', unencoded, atob(encoded));
  14. return;
  15. }
  16. console.log('[PASS] all tests pass');
  17. }());