2 * $Id: es6.js,v 0.1 2017/11/29 21:43:17 ufolux Exp ufolux $
5 * http://visionmedia.github.com/mocha/
7 import {Base64} from '../base64'
9 var assert = assert || require("assert");
10 var is = function (a, e, m) {
16 if ('extendString' in Base64){
17 Base64.extendString();
18 describe('String', function () {
19 it('.toBase64', is('小飼弾'.toBase64(), '5bCP6aO85by+'));
20 it('.toBase64', is('小飼弾'.toBase64(true), '5bCP6aO85by-'));
21 it('.toBase64URI', is('小飼弾'.toBase64URI(), '5bCP6aO85by-'));
22 it('.fromBase64', is('5bCP6aO85by+'.fromBase64(), '小飼弾'));
23 it('.fromBase64', is('5bCP6aO85by-'.fromBase64(), '小飼弾'));