Sha256: c3998bae36c5f4604b7479fbf622876a9915acee50330d125d7e99e88256110b
Contents?: true
Size: 583 Bytes
Versions: 62
Compression:
Stored size: 583 Bytes
Contents
var assert = require('assert'), should = require('should'), md5omatic = require('../lib/md5omatic'); describe('md5omatic', function() { describe('(str)', function() { it('hash simple string phrase', function() { var str = 'the quick brown fox jumps over the lazy dog.' var hashed = '34e0f92ff2134463881e86a35283329d'; md5omatic(str).should.eql(hashed); }); it('hash empty string', function() { var empty_hash = 'd41d8cd98f00b204e9800998ecf8427e'; md5omatic('').should.eql(empty_hash); });; }); });
Version data entries
62 entries across 62 versions & 1 rubygems