Skip to content

Commit

Permalink
added decode test
Browse files Browse the repository at this point in the history
  • Loading branch information
maraoz committed Mar 5, 2014
1 parent 63973b2 commit d2b74c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test.misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ var bignum = bitcore.bignum;
var base58 = bitcore.base58;
var base58Check = base58.base58Check;
var util = bitcore.util;
var buffertools = require('buffertools');

describe('Miscelaneous stuff', function() {
it('should initialze the config object', function() {
Expand Down Expand Up @@ -61,6 +62,7 @@ describe('Miscelaneous stuff', function() {
test_data.dataEncodeDecode.forEach(function(datum) {
it('base58 encode/decode checks ' + datum, function() {
base58.encode(new Buffer(datum[0], 'hex')).should.equal(datum[1]);
buffertools.toHex(base58.decode(datum[1])).should.equal(datum[0]);
});
});

Expand Down

0 comments on commit d2b74c2

Please sign in to comment.