7import Network.API.Mandrill.Messages.Types
8import Network.API.Mandrill.Users.Types
9import qualified Data.ByteString.Char8 as C8
12#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ <= 706
13isRight :: Either a b -> Bool
14isRight (Left _) = False
18testMessagesSend :: Assertion
20 assertBool ("send.json: Parsing failed! " ++ show parsePayload)
21 (isRight parsePayload)
23 parsePayload :: Either String MessagesSendRq
24 parsePayload = eitherDecodeStrict . C8.pack $ sendData
26testUsersInfo :: Assertion
28 let res = parsePayload
29 assertBool ("users/info.json (response): Parsing failed: " ++ show res)
30 (isRight parsePayload)
32 parsePayload :: Either String UsersInfoResponse
33 parsePayload = eitherDecodeStrict . C8.pack $ usersInfoData
35testUsersSenders :: Assertion
37 let res = parsePayload
38 assertBool ("users/senders.json (response): Parsing failed: " ++ show res)
39 (isRight parsePayload)
41 parsePayload :: Either String UsersSendersResponse
42 parsePayload = eitherDecodeStrict . C8.pack $ usersSendersData
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list