summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2013-10-17 09:52:34 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2013-10-17 09:52:34 +0400
commit913915b3e2b88305c7e4eeeee2c4191465970655 (patch)
tree21e5cbb505445dc8cd551d912ba123113821bfad /tests
parent2f5450c06b70b5d9b319d651af5934aa4e5f97c4 (diff)
Update tests to use newer bencoding
Diffstat (limited to 'tests')
-rw-r--r--tests/Client.hs7
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
4import Control.Concurrent 4import Control.Concurrent
5import Control.Exception 5import Control.Exception
6import qualified Data.ByteString as B 6import qualified Data.ByteString as B
7import Data.BEncode 7import Data.BEncode as BE
8import Data.Map 8import Data.BEncode.BDict as BE
9import System.Environment
10import System.Process 9import System.Process
11import System.FilePath 10import 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 ]