test.js 376 B

12345678910111213
  1. "use strict";
  2. var assert = require("assert"),
  3. hash = require("./");
  4. describe("hash", function() {
  5. it("should hash \"Mary had a little lamb.\" to 1766333550", function() {
  6. assert.equal(hash("Mary had a little lamb."), 1766333550);
  7. });
  8. it("should hash \"Hello, world!\" to 343662184", function() {
  9. assert.equal(hash("Hello, world!"), 343662184);
  10. });
  11. });