Fixing testing

This commit is contained in:
romanman 2014-06-26 19:57:49 +01:00
parent bb824e2717
commit 509f0d6ed7
2 changed files with 40 additions and 64 deletions

View File

@ -162,6 +162,7 @@ public class BlockTest {
@Test
public void testCalcDifficulty() {
try {
Block genesis = Genesis.getInstance();
BigInteger difficulty = new BigInteger(1, genesis.calcDifficulty());
System.out.println("Genesis difficulty = " + difficulty.toString());
@ -177,6 +178,9 @@ public class BlockTest {
System.out.println("Block#1 actual difficulty = " + actualDifficulty.toString());
System.out.println("Block#1 calculated difficulty = " + calcDifficulty.toString());
assertEquals(actualDifficulty, calcDifficulty);
} finally {
WorldManager.instance.close();
}
}
@Test

File diff suppressed because one or more lines are too long