]> git.r.bdr.sh - rbdr/dotfiles/blob
6fd0d99f49ed51078171891c4d12ef9ed36b893b
[rbdr/dotfiles] /
1 /* -*- Mode: js; js-indent-level: 2; -*- */
2 /*
3 * Copyright 2011 Mozilla Foundation and contributors
4 * Licensed under the New BSD license. See LICENSE or:
5 * http://opensource.org/licenses/BSD-3-Clause
6 */
7 if (typeof define !== 'function') {
8 var define = require('amdefine')(module, require);
9 }
10 define(function (require, exports, module) {
11
12 var base64VLQ = require('../../lib/source-map/base64-vlq');
13
14 exports['test normal encoding and decoding'] = function (assert, util) {
15 var result = {};
16 for (var i = -255; i < 256; i++) {
17 base64VLQ.decode(base64VLQ.encode(i), result);
18 assert.equal(result.value, i);
19 assert.equal(result.rest, "");
20 }
21 };
22
23 });