Skip to content

Commit

Permalink
[sky] refs #279 - Assert assets supported by instances representing t…
Browse files Browse the repository at this point in the history
…ransaction inputs and outputs
  • Loading branch information
olemis committed Jan 8, 2020
1 parent 79e6a07 commit 604e4c2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/coin/skycoin/models/coin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,22 @@ func TestSupportedAssets(t *testing.T) {
cTxn := new(SkycoinCreatedTransaction)
assets = cTxn.SupportedAssets()
requirethat.ElementsMatch(t, []string{Sky, CoinHour}, assets)

skyTxnOut := new(SkycoinTransactionOutput)
assets = skyTxnOut.SupportedAssets()
requirethat.ElementsMatch(t, []string{Sky, CoinHour, CalculatedHour}, assets)

skyTxnIn := new(SkycoinTransactionInput)
assets = skyTxnIn.SupportedAssets()
requirethat.ElementsMatch(t, []string{Sky, CoinHour, CalculatedHour}, assets)

cTxnOut := new(SkycoinCreatedTransactionOutput)
assets = cTxnOut.SupportedAssets()
requirethat.ElementsMatch(t, []string{Sky, CoinHour, CalculatedHour}, assets)

cTxnIn := new(SkycoinTransactionInput)
assets = cTxnIn.SupportedAssets()
requirethat.ElementsMatch(t, []string{Sky, CoinHour, CalculatedHour}, assets)
}

func TestPendingTxnStatus(t *testing.T) {
Expand Down

0 comments on commit 604e4c2

Please sign in to comment.