3GBSDS5PDSTTJTJOLEKZRRTAONS3T3JFZ3FQGFGS3AOXDBZ6SPLAC
DFOBMSAODB3NKW37B272ZXA2ML5HMIH3N3C4GT2DPEQS7ZFK4SNAC
WO2MINIF4TXOHWSE7JWXRZYN64XRVLYIRFMF4SMPSOXKA2V77KMQC
64C6AWH66FDKU6UE6Z6JPX2J2GBM2JOPTH2GL6LHKAIUBGNGDZ5AC
LHJ2HFXVUQ4VG25I7DADWU73G5K5WNZBDQ3SVNKFYLZ5BEYM4XCQC
UUR6SMCAJMA7O3ZFUCQMPZFDDIPUVQ5IHUAC5F252YVD6H3JIKPQC
4U7F3CPIDTK6JSEDMNMHVKSR7HOQDLZQD2PPVMDLHO5SFSIMUXZAC
NEDDHXUK3GNFMOFO3KLU7NRIHCTYNWBT3D6HTKZAOXFDE6HMDZ6AC
NVOCQVASZWTKQJG7GPH7KHKZZR7NUG4WLV5YY4KAIRPCJRWCZPIAC
5DRIWGLUKMQZU2ZPBXSTLAWJKAMOD5YXAHM5LEDQHDFGYYLHWCDQC
7KZP4RHZ3QSYTPPQ257A65Z5UPX44TF2LAI2U5EMULQCLDCEUK2AC
2KZPOGRBY6KBMO76F55ZKIVOLSG3O63VP3RHRZVANXYT3OLZ3OWQC
OV5AKJHA773ETIJPTMQ7K64U7BRQE34OXJ6FJNH6TZG22WS5QTIAC
SCXG6TJWYIPRUMT27KGKIIF6FYKTUTY74UNZ2FQTT63XZ6HIF3AAC
module Aftok.Generators where
import ClassyPrelude
import Data.UUID
import Network.Haskoin.Test (ArbitraryAddress(..))
import Aftok (BtcAddr(..))
import Aftok.Types (Satoshi(..))
import Test.QuickCheck
genUUID :: Gen UUID
genUUID = fromWords <$> arbitrary <*> arbitrary <*> arbitrary <*> arbitrary
genSatoshi :: Gen Satoshi
genSatoshi = Satoshi <$> arbitrary
genBtcAddr :: Gen BtcAddr
genBtcAddr = fmap (\(ArbitraryAddress addr) -> BtcAddr addr) arbitrary
{-# OPTIONS_GHC -Wwarn -fno-warn-orphans #-}
module Aftok.PaymentsSpec (main, spec) where
import ClassyPrelude
import Test.Hspec
spec :: Spec
spec = do
describe "finding unbilled dates" $ do
pure ()
--it "returns the billing date in the presence of an expired payment request" $
-- forAll ((,) <$> genSatoshi <*> listOf genBid) $
-- \(raiseAmount', bids) ->
-- case runAuction' raiseAmount' bids of
-- WinningBids xs -> bidsTotal xs == raiseAmount'
-- InsufficientBids t -> t == (raiseAmount' - bidsTotal bids)
main :: IO ()
main = hspec spec