01a8090c938b24522c7add22510b39866fde9b71d5521bdadd01a3642d07a55669de8685210d7c83cfc3d2059538ff14e6cb3676a230d9276bcdd123412e5e 362 B

123456789101112131415161718
  1. (function () {
  2. "use strict";
  3. var atob = require('.');
  4. var encoded = "SGVsbG8sIFdvcmxkIQ=="
  5. var unencoded = "Hello, World!";
  6. /*
  7. , encoded = "SGVsbG8sIBZM"
  8. , unencoded = "Hello, 世界"
  9. */
  10. if (unencoded !== atob(encoded)) {
  11. console.log('[FAIL]', unencoded, atob(encoded));
  12. return;
  13. }
  14. console.log('[PASS] all tests pass');
  15. }());