X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2FTSN%2FXML%2FInjuries.hs;fp=src%2FTSN%2FXML%2FInjuries.hs;h=03f956595606ae2c342faa9c68384141d8497e88;hb=1f260c118e8da5679820c8cfa489d8fe4a521140;hp=8002799c62e0e26f4bb7217740ac4651aaa0235f;hpb=9d2fd74804d0b7720fd8d0b68beafc6c2777c5d1;p=dead%2Fhtsn-import.git diff --git a/src/TSN/XML/Injuries.hs b/src/TSN/XML/Injuries.hs index 8002799..03f9565 100644 --- a/src/TSN/XML/Injuries.hs +++ b/src/TSN/XML/Injuries.hs @@ -14,8 +14,9 @@ -- automatically. The root message is not retained. -- module TSN.XML.Injuries ( - injuries_tests, pickle_message, + -- * Tests + injuries_tests, -- * WARNING: these are private but exported to silence warnings ListingConstructor(..) ) where @@ -145,8 +146,12 @@ pickle_message = time_stamp m) +-- +-- Tasty Tests +-- --- * Tasty Tests +-- | A list of all tests for this module. +-- injuries_tests :: TestTree injuries_tests = testGroup @@ -155,8 +160,10 @@ injuries_tests = test_unpickle_succeeds ] --- | Warning, succeess of this test does not mean that unpickling --- succeeded. +-- | If we unpickle something and then pickle it, we should wind up +-- with the same thing we started with. WARNING: succeess of this +-- test does not mean that unpickling succeeded. +-- test_pickle_of_unpickle_is_identity :: TestTree test_pickle_of_unpickle_is_identity = testCase "pickle composed with unpickle is the identity" $ do @@ -165,6 +172,8 @@ test_pickle_of_unpickle_is_identity = actual @?= expected +-- | Make sure we can actually unpickle these things. +-- test_unpickle_succeeds :: TestTree test_unpickle_succeeds = testCase "unpickling succeeds" $ do