Skip to content

Commit

Permalink
add tests (TODOs) for SeededWallet
Browse files Browse the repository at this point in the history
  • Loading branch information
fluency03 committed May 12, 2018
1 parent f997aaa commit 1d2e943
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,15 @@ class WalletTest extends FlatSpec with Matchers {
kc2.balance(uTxOs) shouldEqual 40
}

"SeededWallet" should "maintain a set of keys in seeded way." in {
val wallet = SeededWallet()

// TODO (Chang): tests after methods being implemented
a[NotImplementedError] should be thrownBy wallet.size()
a[NotImplementedError] should be thrownBy wallet.newKey()
a[NotImplementedError] should be thrownBy wallet.getKey("")
a[NotImplementedError] should be thrownBy wallet.balance(mutable.Map.empty[Outpoint, TxOut])

}

}

0 comments on commit 1d2e943

Please sign in to comment.