UI for Zipcoin Blue

12345678910111213141516171819
  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. }());