yoshinoya.js 671B

1234567891011121314151617181920
  1. /*
  2. * use mocha to test me
  3. * http://visionmedia.github.com/mocha/
  4. */
  5. var assert = assert || require("assert");
  6. var Base64 = Base64 || require('../base64.js').Base64;
  7. var is = function (a, e, m) {
  8. return function () {
  9. assert.equal(a, e, m)
  10. }
  11. };
  12. describe('Yoshinoya', function () {
  13. it('.encode', is(Base64.encode('𠮷野家'), '8KCut+mHjuWutg=='));
  14. it('.encodeURI', is(Base64.encodeURI('𠮷野家'), '8KCut-mHjuWutg'));
  15. it('.decode', is(Base64.decode('8KCut+mHjuWutg=='), '𠮷野家'));
  16. it('.decode', is(Base64.decode('8KCut-mHjuWutg'), '𠮷野家'));
  17. /* it('.decode', is(Base64.decode('7aGC7b636YeO5a62'), '𠮷野家')); */
  18. });