Skip to content

Commit

Permalink
updated the calcDifficulty test to make it clear with what we're testing
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensayshi committed Apr 8, 2014
1 parent 9c6c300 commit 3118ab1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test.util.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,13 @@ describe('util', function() {
});
describe('#calcDifficulty', function() {
var bitsgenesis = 486604799;
it('should work for ' + bitsgenesis, function() {
it('should work for the bits from the genesis block; ' + bitsgenesis, function() {
var difficulty = coinUtil.calcDifficulty(bitsgenesis);
difficulty.should.equal(1);
});
var bitslater = 419476394;
it('should work for ' + bitslater, function() {
var difficulty = coinUtil.calcDifficulty(bitslater);
var randomotherbits = 419476394;
it('should work for the bits in a randomly chosen block, eg [00000000000000001fef2bbc6da9b65e16f9187b7d88f15a308490bf2c9b8e1d] ' + randomotherbits, function() {
var difficulty = coinUtil.calcDifficulty(randomotherbits);
difficulty.should.equal(6119726089);
});
});
Expand Down

0 comments on commit 3118ab1

Please sign in to comment.