Sha256: b800cbb8ecd646d4f02a6e077d0e5beede154f515a8a31e29d15ee101184dbad

Contents?: true

Size: 687 Bytes

Versions: 288

Compression:

Stored size: 687 Bytes

Contents

/* -*- Mode: js; js-indent-level: 2; -*- */
/*
 * Copyright 2011 Mozilla Foundation and contributors
 * Licensed under the New BSD license. See LICENSE or:
 * http://opensource.org/licenses/BSD-3-Clause
 */
if (typeof define !== 'function') {
    var define = require('amdefine')(module, require);
}
define(function (require, exports, module) {

  var base64VLQ = require('../../lib/source-map/base64-vlq');

  exports['test normal encoding and decoding'] = function (assert, util) {
    var result = {};
    for (var i = -255; i < 256; i++) {
      base64VLQ.decode(base64VLQ.encode(i), result);
      assert.equal(result.value, i);
      assert.equal(result.rest, "");
    }
  };

});

Version data entries

288 entries across 175 versions & 13 rubygems

Version Path
ilog-0.4.1 node_modules/resolve-url-loader/node_modules/source-map/test/source-map/test-base64-vlq.js
ilog-0.4.0 node_modules/resolve-url-loader/node_modules/source-map/test/source-map/test-base64-vlq.js
ilog-0.3.3 node_modules/resolve-url-loader/node_modules/source-map/test/source-map/test-base64-vlq.js
ela-4.1.6 node_modules/source-map/test/source-map/test-base64-vlq.js
ela-4.1.5 node_modules/source-map/test/source-map/test-base64-vlq.js
ela-4.1.4 node_modules/source-map/test/source-map/test-base64-vlq.js
ela-4.1.3 node_modules/source-map/test/source-map/test-base64-vlq.js
optimacms-0.4.3 spec/dummy/node_modules/css/node_modules/source-map/test/source-map/test-base64-vlq.js
optimacms-0.4.2 spec/dummy/node_modules/css/node_modules/source-map/test/source-map/test-base64-vlq.js
ela-4.1.2 node_modules/source-map/test/source-map/test-base64-vlq.js
ela-4.1.1 node_modules/source-map/test/source-map/test-base64-vlq.js
ela-4.1.0 node_modules/source-map/test/source-map/test-base64-vlq.js
cortex-0.1.3 spec/dummy/node_modules/css/node_modules/source-map/test/source-map/test-base64-vlq.js
ela-4.0.0 node_modules/source-map/test/source-map/test-base64-vlq.js
ela-3.4.3 node_modules/source-map/test/source-map/test-base64-vlq.js
ela-3.4.2 node_modules/source-map/test/source-map/test-base64-vlq.js
ela-3.4.0 node_modules/source-map/test/source-map/test-base64-vlq.js
ela-3.3.1 node_modules/source-map/test/source-map/test-base64-vlq.js
ela-3.3.0 node_modules/source-map/test/source-map/test-base64-vlq.js
ela-3.2.0 node_modules/source-map/test/source-map/test-base64-vlq.js