Skip to content

Commit

Permalink
Use NumericUnderscores for migration properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanknowles committed May 12, 2020
1 parent 5f32c58 commit 50b2400
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/test/Cardano/CoinSelection/Algorithm/MigrationSpec.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NumericUnderscores #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}
Expand Down Expand Up @@ -117,27 +118,27 @@ spec = do

describe "selectCoins properties" $ do
it "No coin selection has outputs" $
property $ withMaxSuccess 10000 $ prop_onlyChangeOutputs
property $ withMaxSuccess 10_000 $ prop_onlyChangeOutputs
@(Wrapped TxIn) @Address

it "Every coin in the selection change > dust threshold" $
property $ withMaxSuccess 10000 $ prop_allAboveThreshold
property $ withMaxSuccess 10_000 $ prop_allAboveThreshold
@(Wrapped TxIn) @Address

it "Total input UTxO value >= sum of selection change coins" $
property $ withMaxSuccess 10000 $ prop_inputsGreaterThanOutputs
property $ withMaxSuccess 10_000 $ prop_inputsGreaterThanOutputs
@(Wrapped TxIn) @Address

it "Every selection input is unique" $
property $ withMaxSuccess 10000 $ prop_inputsAreUnique
property $ withMaxSuccess 10_000 $ prop_inputsAreUnique
@(Wrapped TxIn) @Address

it "Every selection input is a member of the UTxO" $
property $ withMaxSuccess 10000 $ prop_inputsStillInUTxO
property $ withMaxSuccess 10_000 $ prop_inputsStillInUTxO
@(Wrapped TxIn) @Address

it "Every coin selection is well-balanced" $
property $ withMaxSuccess 10000 $ prop_wellBalanced
property $ withMaxSuccess 10_000 $ prop_wellBalanced
@(Wrapped TxIn) @Address

describe "selectCoins regressions" $ do
Expand Down

0 comments on commit 50b2400

Please sign in to comment.