MCPcopy Create free account
hub / github.com/0xAX/go-algorithms / compare

Function compare

binaryTree/binaryTree_test.go:5–7  ·  view source on GitHub ↗
(x interface{}, y interface{})

Source from the content-addressed store, hash-verified

3import "testing"
4
5func compare(x interface{}, y interface{}) bool {
6 return x.(int) < y.(int)
7}
8
9func Test_binaryTree(t *testing.T) {
10 tree := New(compare)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected