Add start of specs for auctions.
[?]
Oct 19, 2015, 4:55 AM
UUR6SMCAJMA7O3ZFUCQMPZFDDIPUVQ5IHUAC5F252YVD6H3JIKPQCDependencies
- [2]
2XQD6KKKAdd invitation logic and clean up DBProg error handling. - [3]
KNSI575VCleanup of EventLog types. - [4]
TJEUE7TYAdded OverloadedStrings to eliminate Text fiddling. - [5]
4U7F3CPITHE GREAT RENAMING OF THINGS! - [6]
7KZP4RHZSwitch from Data.Time to Data.Thyme - [7]
NMWWP4ZNTrying out Hspec - [8]
4SCFOJGNSpecs for recovering intervals from the log now pass. - [9]
EMVTF2IWWIP moving back to snap. - [10]
5DRIWGLUImproving TimeLog specs - [11]
64C6AWH6Rename Ananke -> Quixotic, project reboot. - [*]
QMRKFEPGRefactor QDB to use a free monad algebra instead. - [*]
NVOCQVASInitial failing tests.
Change contents
- edit in aftok.cabal at line 30
Aftok.Types - edit in aftok.cabal at line 85
, hourglass - edit in aftok.cabal at line 88
, network-bitcoin - edit in aftok.cabal at line 93
, uuid - file addition: AuctionSpec.hs[3.3462]
{-# OPTIONS_GHC -Wwarn #-}module Aftok.AuctionSpec (main, spec) whereimport ClassyPreludeimport Aftokimport Aftok.Auctionimport Aftok.Typesimport Data.Hourglassimport Data.UUIDimport Test.Hspecimport Test.QuickCheckspec :: Specspec =describe "bid ordering" $it "ensures that bids with lowest seconds/btc ratio are first" $let testB1 = Bid (UserId nil) (Seconds 60) (Satoshi 1000) undefinedtestB2 = Bid (UserId nil) (Seconds 60) (Satoshi 100) undefinedtestB3 = Bid (UserId nil) (Seconds 90) (Satoshi 100) undefinedin dobidOrder testB1 testB2 `shouldBe` LTbidOrder testB2 testB3 `shouldBe` LTmain :: IO ()main = hspec spec - replacement in test/Aftok/TimeLogSpec.hs at line 6
module Aftok.TimeLogSpec wheremodule Aftok.TimeLogSpec (main, spec) where - replacement in test/Aftok/TimeLogSpec.hs at line 99
widx' = fmap (L.fromList . mergeAdjacent . sortOn _start . L.toList) widxwidx' = fmap (L.fromList . mergeAdjacent . sortOn I._start . L.toList) widx