forked from go/golangs_learn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
235 B
13 lines
235 B
package bridage
|
|
|
|
import "testing"
|
|
|
|
func TestCircle_Draw(t *testing.T) {
|
|
red := Circle{}
|
|
red.Constructor(100, 100, 10, &RedCircle{})
|
|
red.Draw()
|
|
|
|
yellow := Circle{}
|
|
yellow.Constructor(200, 200, 20, &YellowCircle{})
|
|
yellow.Draw()
|
|
}
|
|
|