diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2013-10-17 09:52:34 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2013-10-17 09:52:34 +0400 |
commit | 913915b3e2b88305c7e4eeeee2c4191465970655 (patch) | |
tree | 21e5cbb505445dc8cd551d912ba123113821bfad /tests | |
parent | 2f5450c06b70b5d9b319d651af5934aa4e5f97c4 (diff) |
Update tests to use newer bencoding
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Client.hs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/Client.hs b/tests/Client.hs index cda01631..b92f7094 100644 --- a/tests/Client.hs +++ b/tests/Client.hs | |||
@@ -4,9 +4,8 @@ module Main (main) where | |||
4 | import Control.Concurrent | 4 | 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 as BE |
8 | import Data.Map | 8 | import Data.BEncode.BDict as BE |
9 | import System.Environment | ||
10 | import System.Process | 9 | import System.Process |
11 | import System.FilePath | 10 | import System.FilePath |
12 | 11 | ||
@@ -73,7 +72,7 @@ tests = | |||
73 | BInteger 10 ==? call addr rawM (BInteger 10) | 72 | BInteger 10 ==? call addr rawM (BInteger 10) |
74 | 73 | ||
75 | , testCase "raw dict" $ | 74 | , testCase "raw dict" $ |
76 | let dict = BDict $ fromList | 75 | let dict = BDict $ BE.fromAscList |
77 | [ ("some_int", BInteger 100) | 76 | [ ("some_int", BInteger 100) |
78 | , ("some_list", BList [BInteger 10]) | 77 | , ("some_list", BList [BInteger 10]) |
79 | ] | 78 | ] |