Beispiel #1
0
func TestSum(t *testing.T) {
	bt, root := fixture()
	sum := bt.Sum(root)
	assert.Ok(t, sum == 0)
}
Beispiel #2
0
func TestAvg(t *testing.T) {
	bt, root := fixture()
	avg := bt.Avg(root)
	assert.Ok(t, avg == 0)
}
Beispiel #3
0
func TestSize(t *testing.T) {
	bt, root := fixture()
	size := bt.Size(root)
	assert.Ok(t, size == 0)
}
Beispiel #4
0
func TestMax(t *testing.T) {
	bt, root := fixture()
	max := bt.Max(root)
	assert.Ok(t, max == 0)
}
Beispiel #5
0
func TestMin(t *testing.T) {
	bt, root := fixture()
	min := bt.Min(root)
	assert.Ok(t, min == 0)
}
Beispiel #6
0
func TestFind(t *testing.T) {
	bt, root := fixture()
	found := bt.Find(root, 5)
	assert.Ok(t, found == false)
}
Beispiel #7
0
func TestNotPowered(t *testing.T) {
	hoge := "hoge"
	fuga := "fuga"
	assert.Ok(t, hoge == fuga)
}