初始化
This commit is contained in:
13
uni_modules/UniDevTools/node_modules/string-hash/test.js
generated
vendored
Normal file
13
uni_modules/UniDevTools/node_modules/string-hash/test.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
"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);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user