PHP 7.4.33
Preview: test.js Size: 376 B
/var/www/cookieconsent.bitkit.dk/httpdocs/node_modules/string-hash/test.js
"use strict";
var assert = require("assert"),
    hash   = require("./");

describe("hash", function() {
  it("should hash \"Mary had a little lamb.\" to 1766333550", function() {
    assert.equal(hash("Mary had a little lamb."), 1766333550);
  });

  it("should hash \"Hello, world!\" to 343662184", function() {
    assert.equal(hash("Hello, world!"), 343662184);
  });
});

Directory Contents

Dirs: 0 × Files: 6
Name Size Perms Modified Actions
14 B lrw-r--r-- 2025-06-16 05:45:39
Edit Download
344 B lrw-r--r-- 2025-06-16 05:45:39
Edit Download
408 B lrw-r--r-- 2025-06-16 05:45:39
Edit Download
494 B lrw-r--r-- 2025-06-16 05:45:39
Edit Download
841 B lrw-r--r-- 2025-06-16 05:45:39
Edit Download
376 B lrw-r--r-- 2025-06-16 05:45:39
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).