summaryrefslogtreecommitdiff
path: root/tests/Main.hs
AgeCommit message (Collapse)Author
2013-12-25Add missing import Data.Functor to tests/Main.hsDaniel Gröber
2013-12-25Add --bittorrent-client=.. option to specDaniel Gröber
2013-10-31Update licenseSam Truzjan
2013-10-14Move some modules from torrent-contentSam Truzjan
2013-08-16~ Fix some warnings.Sam T
2013-08-16~ Remove torrent-content modules.Sam T
2013-07-21~ Move HTTP tracker stuff to its own module.Sam T
2013-07-14~ Minor changes.Sam T
2013-07-04~ Rename PeerID to PeerId.Sam T
2013-07-04~ Use TH for JSON instance.Sam T
Note that we don't need JSON tests anymore.
2013-07-04+ Add tests for ScrapeInfo encoding.Sam T
2013-07-04~ Minor changes.Sam T
2013-07-04~ Move info hash test to main test suite.Sam T
2013-07-04~ Move MMap tests to properties test suite.Sam T
The MMap test suite is tiny enough to not separate it from the main test suite. It also reduces compilation (link) time a bit.
2013-07-03~ Use lazy bytestringSam T
This lead to the following consequences: * we could efficiently read from storage - if block intersects files boundaries then we will "view" the block in the two different bytestrings. To avoid concat we now return lazy bytestring; * we could read block from socket without "concat" - again, for the same reason. The pitfail is that now we have a bit more heap object, but blocks lifetime is very short and this shouldnt play the big difference. The lifetime is either (socket -> storage -> unreachable) or (storage -> socket -> unreachable) unless a lib user keep block for their own purposes.
2013-06-13~ Fix wall suggestions.Sam T
2013-06-11~ Minor changes.Sam T
2013-06-09~ Hide *.Protocol modules.Sam T
2013-06-07~ Fix bitfield encoding.Sam T
2013-06-07~ Merge Encoding to Main.Sam T
2013-06-07~ Fix bug in torrent bencode instance.Sam T
Also add encoding tests for torrent module.
2013-06-07+ Add tests for bitfield.Sam T
2013-06-06+ Add some tests.Sam T
2013-06-02~ Use IntSet instead of ByteString for bitfields.Sam T
There are several reasons for this: * IntSet is stored in ordinary heap, while ByteStrings in pinned memory; * Our IntSet's should be much faster 90% time. (in typical BT client) Hovewer in worst case IntSet is slower, but difference should is not so big. (We should measure this although) * It's pure, tested, error-free and much more convenient. Moreover we have kill a lot of ugly code!
2013-05-08~ Fix handshake.Sam T
2013-05-05~ Move bitfields to Data.Sam T
2013-05-05+ Add bitfield completeness function.Sam T
2013-05-04+ Add some test cases for findMin & finMax.Sam T
2013-05-03+ Add more properties for bitfield operations.Sam T
2013-05-03+ Add tests for bitfield min & max.Sam T
2013-05-03+ Add initial tests for bitfields.Sam T