1
0
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:
Jesse
2019-12-29 20:44:11 -05:00
parent 3b7eb1da70
commit 648d87a2d0

View File

@@ -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},
}, },
} }