diff options
author | Daniel Gröber <dxld@darkboxed.org> | 2013-12-20 18:03:48 +0100 |
---|---|---|
committer | Daniel Gröber <dxld@darkboxed.org> | 2013-12-20 18:03:48 +0100 |
commit | cda38f19ed9493070433067116ad720b78714dfd (patch) | |
tree | 948a1328907cd1ba75ee55f9cb726a0cf14d9095 /tests/Network/BitTorrent/Core/PeerAddrSpec.hs | |
parent | f061e4aff630e6f4793b962f99c42e70c337c46f (diff) |
Fix key order of test dictionaries in PeerAddrSpec
Diffstat (limited to 'tests/Network/BitTorrent/Core/PeerAddrSpec.hs')
-rw-r--r-- | tests/Network/BitTorrent/Core/PeerAddrSpec.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/Network/BitTorrent/Core/PeerAddrSpec.hs b/tests/Network/BitTorrent/Core/PeerAddrSpec.hs index e5850998..1bc8d4b4 100644 --- a/tests/Network/BitTorrent/Core/PeerAddrSpec.hs +++ b/tests/Network/BitTorrent/Core/PeerAddrSpec.hs | |||
@@ -171,8 +171,8 @@ spec = do | |||
171 | 171 | ||
172 | 172 | ||
173 | it "properly bencoded (ipv4)" $ do | 173 | it "properly bencoded (ipv4)" $ do |
174 | BE.decode "d7:peer id20:01234567890123456789\ | 174 | BE.decode "d2:ip11:168.192.0.1\ |
175 | \2:ip11:168.192.0.1\ | 175 | \7:peer id20:01234567890123456789\ |
176 | \4:porti6881e\ | 176 | \4:porti6881e\ |
177 | \e" | 177 | \e" |
178 | `shouldBe` | 178 | `shouldBe` |
@@ -181,8 +181,8 @@ spec = do | |||
181 | 6881) | 181 | 6881) |
182 | 182 | ||
183 | it "properly bencoded (ipv6)" $ do | 183 | it "properly bencoded (ipv6)" $ do |
184 | BE.decode "d7:peer id20:01234567890123456789\ | 184 | BE.decode "d2:ip3:::1\ |
185 | \2:ip3:::1\ | 185 | \7:peer id20:01234567890123456789\ |
186 | \4:porti6881e\ | 186 | \4:porti6881e\ |
187 | \e" | 187 | \e" |
188 | `shouldBe` | 188 | `shouldBe` |