Closed BastienClement closed 10 years ago
Related to #37
I'm going to write some tests to cover this.
OK, here are the tests, asapach/torrent-stream@c7716be0a478317d3de104f8df9253fda4788c26 Looks fine, will see how it helps with #37
@asapach could you send me a PR with the tests as well?
@galedric cool stuff!
@mafintosh, on its way.
Released in 0.10.1
This one seems to work. I can't see why it wouldn't. But careful reviewing of it would comfort me.
It would have been much cleaner with simply
.filter().map()
, but since object are just references, it would have destroyed the original piece-files map...Also any stupid range (like [a-b] with a > b, or a == b) should be handled properly.
a
defaults to0
/b
defaults topiecesLength
.