Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
lib/wallet/test/unit/Cardano/Wallet/DB/Store/DeltaUTxO/TxOutBinarySpec.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{-# LANGUAGE ScopedTypeVariables #-} | ||
module Cardano.Wallet.DB.Store.DeltaUTxO.TxOutBinarySpec | ||
( spec | ||
) | ||
where | ||
|
||
import Prelude | ||
|
||
import Cardano.Wallet.DB.Arbitrary | ||
() | ||
import Cardano.Wallet.DB.Store.DeltaUTxO.TxOutBinary | ||
( deserializeTxOut, serializeTxOut ) | ||
import Test.Hspec | ||
( Spec, describe, it ) | ||
import Test.QuickCheck | ||
( Testable (property), (===) ) | ||
|
||
spec :: Spec | ||
spec = do | ||
describe "TxOutBinary" $ do | ||
it "can serialize and deserialize TxOut" $ | ||
property $ \txOut -> | ||
deserializeTxOut (serializeTxOut txOut) === Right txOut |