diff options
Diffstat (limited to 'tests/Client.hs')
-rw-r--r-- | tests/Client.hs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/Client.hs b/tests/Client.hs index 1b9ef8d2..313cd56e 100644 --- a/tests/Client.hs +++ b/tests/Client.hs | |||
@@ -5,6 +5,7 @@ import Control.Concurrent | |||
5 | import Control.Exception | 5 | import Control.Exception |
6 | import qualified Data.ByteString as B | 6 | import qualified Data.ByteString as B |
7 | import Data.BEncode | 7 | import Data.BEncode |
8 | import Data.Map | ||
8 | import System.Environment | 9 | import System.Environment |
9 | import System.Process | 10 | import System.Process |
10 | import System.FilePath | 11 | import System.FilePath |
@@ -69,4 +70,11 @@ tests = | |||
69 | 70 | ||
70 | , testCase "raw method" $ | 71 | , testCase "raw method" $ |
71 | BInteger 10 ==? call addr rawM (BInteger 10) | 72 | BInteger 10 ==? call addr rawM (BInteger 10) |
73 | |||
74 | , testCase "raw dict" $ | ||
75 | let dict = BDict $ fromList | ||
76 | [ ("some_int", BInteger 100) | ||
77 | , ("some_list", BList [BInteger 10]) | ||
78 | ] | ||
79 | in dict ==? call addr rawDictM dict | ||
72 | ] | 80 | ] |