github.com/anacrolix/torrent@v1.61.0/peer_protocol/reserved_test.go (about)

     1  package peer_protocol
     2  
     3  import (
     4  	"testing"
     5  
     6  	qt "github.com/go-quicktest/qt"
     7  )
     8  
     9  func TestV2BitLocation(t *testing.T) {
    10  	var bits PeerExtensionBits
    11  	bits.SetBit(ExtensionBitV2Upgrade, true)
    12  	qt.Assert(t, qt.Equals(bits[7], byte(0x10)))
    13  }