You've already forked torrent-client
mirror of
https://github.com/veggiedefender/torrent-client.git
synced 2025-11-06 09:29:16 +02:00
Comments for bitfield SetPiece test cases
This commit is contained in:
@@ -22,17 +22,17 @@ func TestSetPiece(t *testing.T) {
|
|||||||
}{
|
}{
|
||||||
{
|
{
|
||||||
input: Bitfield{0b01010100, 0b01010100},
|
input: Bitfield{0b01010100, 0b01010100},
|
||||||
index: 4,
|
index: 4, // v (set)
|
||||||
outpt: Bitfield{0b01011100, 0b01010100},
|
outpt: Bitfield{0b01011100, 0b01010100},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
input: Bitfield{0b01010100, 0b01010100},
|
input: Bitfield{0b01010100, 0b01010100},
|
||||||
index: 9,
|
index: 9, // v (noop)
|
||||||
outpt: Bitfield{0b01010100, 0b01010100},
|
outpt: Bitfield{0b01010100, 0b01010100},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
input: Bitfield{0b01010100, 0b01010100},
|
input: Bitfield{0b01010100, 0b01010100},
|
||||||
index: 15,
|
index: 15, // v (set)
|
||||||
outpt: Bitfield{0b01010100, 0b01010101},
|
outpt: Bitfield{0b01010100, 0b01010101},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user