Restored the single test to functionality.
[?]
Jan 22, 2015, 12:18 AM
WJO37T74RYR5DRMSVNCXAQBOV42FQB63EG43XDZUU5TA354AIJRACDependencies
- [2]
OBFPJS2GProject successfully builds and tests under nix. - [3]
P6NR2CGXBeginning of implementation of depreciation. - [4]
EQXRXRZDChanged to use tasty instead of test-framework - [5]
GKGVYBZGAdded JSON serialization to TimeLog - [6]
RSEB2NFGReplacing Snap with Scotty. - [7]
NVOCQVASInitial failing tests. - [8]
2KZPOGRBOnce you get Haskell to compile, the tests pass! - [9]
Y35QCWYWMinor improvement in WorkIndex type to eliminate duplicated information. - [10]
NMWWP4ZNTrying out Hspec
Change contents
- edit in test/Quixotic/TimeLogSpec.hs at line 12
import Data.Aeson - edit in test/Quixotic/TimeLogSpec.hs at line 17[3.381]→[3.1934:2091](∅→∅),[3.2091]→[2.3762:3848](∅→∅),[2.3848]→[3.2165:2217](∅→∅),[3.2165]→[3.2165:2217](∅→∅)
describe "work event parsing" $ doit "parses a start event" $ dolet startText = "{\"type\":\"start\", \"timestamp\":\"2014-03-22T11:37:08Z\"}"expected = fmap (WorkEvent StartWork) $ parseISO8601 "2014-03-22T11:37:08Z"(decode startText) `shouldBe` expected - replacement in test/Quixotic/TimeLogSpec.hs at line 42
expected0 = M.map (const [] &&& id) . fromListWith (++) . fmap (intervalBtcAddr &&& return) $ testIntervalsexpected0 = fmap (const [] &&& id) . fromListWith (++) . fmap (intervalBtcAddr &&& return) $ testIntervals - replacement in test/Quixotic/TimeLogSpec.hs at line 45
expected = M.map (bimap (fmap _event) (fmap workInterval)) expected0expected = fmap (fmap workInterval . snd) expected0