mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-13 08:01:02 +00:00
Move String functions to test file
This commit is contained in:
parent
76a05d38b5
commit
18aacbb65a
2 changed files with 10 additions and 5 deletions
|
|
@ -1046,11 +1046,6 @@ func (iv interval32) runlen() int {
|
|||
return 1 + int(iv.last) - int(iv.start)
|
||||
}
|
||||
|
||||
// String produces a human viewable string of the contents.
|
||||
func (iv interval32) String() string {
|
||||
return fmt.Sprintf("[%d, %d]", iv.start, iv.last)
|
||||
}
|
||||
|
||||
// newContainer returns a new instance of container.
|
||||
func newContainer() *container {
|
||||
return &container{}
|
||||
|
|
|
|||
|
|
@ -15,11 +15,21 @@
|
|||
package roaring
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"bytes"
|
||||
"reflect"
|
||||
"testing"
|
||||
)
|
||||
|
||||
// String produces a human viewable string of the contents.
|
||||
func (iv interval32) String() string {
|
||||
return fmt.Sprintf("[%d, %d]", iv.start, iv.last)
|
||||
}
|
||||
|
||||
func (c *container) String() string {
|
||||
return fmt.Sprintf("<%s container (%v), n=%d, array[%d], runs[%d], bitmap[%d]>", c.info().Type, &c, c.n, len(c.array), len(c.runs), len(c.bitmap))
|
||||
}
|
||||
|
||||
func TestRunAppendInterval(t *testing.T) {
|
||||
a := container{}
|
||||
tests := []struct {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue