github.com/balzaczyy/golucene@v0.0.0-20151210033525-d0be9ee89713/core/codec/blocktree/segmentTermsEnum_test.go (about)

     1  package blocktree
     2  
     3  import (
     4  	"testing"
     5  )
     6  
     7  func TestBrToString(t *testing.T) {
     8  	s := brToString(make([]byte, 0, 3))
     9  	if len(s) != 3 {
    10  		t.Error("Reserved space should be hidden.")
    11  	}
    12  }