版博士V2.0程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

14 line
376 B

  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. });