1 /* -*- Mode: js; js-indent-level: 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
7 if (typeof define !== 'function') {
8 var define = require('amdefine')(module, require);
10 define(function (require, exports, module) {
12 var base64VLQ = require('../../lib/source-map/base64-vlq');
14 exports['test normal encoding and decoding'] = function (assert, util) {
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, "");