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