From e46188313def08ac4bfd4855853b702b8710a49a Mon Sep 17 00:00:00 2001 From: fluency03 Date: Thu, 26 Apr 2018 15:22:19 +0100 Subject: [PATCH] add length of Blockchain --- .../scala/com/fluency03/blockchain/core/BlockchainTest.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/scala/com/fluency03/blockchain/core/BlockchainTest.scala b/src/test/scala/com/fluency03/blockchain/core/BlockchainTest.scala index 8cc8234..77e8dc7 100644 --- a/src/test/scala/com/fluency03/blockchain/core/BlockchainTest.scala +++ b/src/test/scala/com/fluency03/blockchain/core/BlockchainTest.scala @@ -63,7 +63,7 @@ class BlockchainTest extends FlatSpec with Matchers { val blockchainAdded = blockchainToAdd.addBlock(actual) blockchainAdded.lastBlock().get shouldEqual expected blockchainAdded.isValid shouldEqual true - blockchainToAdd.length shouldEqual 2 + blockchainAdded.length shouldEqual 2 } "Blockchain" should "have be validatable." in {