Skip to content

Commit

Permalink
current_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
david-julien committed Jul 26, 2017
1 parent 6e1c89b commit a5f6df4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions consensus/current_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package consensus

import (
"testing"

"github.com/ubclaunchpad/cumulus/blockchain"
c "github.com/ubclaunchpad/cumulus/common/constants"
)

func TestCurrentTarget(t *testing.T) {
if blockchain.HashToBigInt(CurrentTarget()).Cmp(c.MaxTarget) != 0 {
t.Fail()
}
}

0 comments on commit a5f6df4

Please sign in to comment.